Skip to content

vorpaljs/vorpal-hacker-news

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vorpal-hacker-news

Build Status

Demo extension for Vorpal.js. This is used in the Vantage.js demo in tandem with vorpal-use to demonstrate how to do a live import of a Vorpal extension.

Installation
npm install vorpal-hacker-news
npm install vorpal
Programmatic use
// index.js
var Vorpal = require('vorpal')
  , hn = require('vorpal-hacker-news')
  ;

var vorpal = Vorpal();

vorpal
  .delimiter('node~$')
  .use(hn)
  .show();
$
$ node index.js
node~$ 
node~$ hacker-news --length 3

  Pulling top 3 stories on Hacker News:

  1. I Dont Believe in God, but I Believe in Lithium (nytimes.com)
     171 points by pepys 11 hours ago | 64 comments

  2. Running Lisp in Production (grammarly.com)
     300 points by f00biebletch 15 hours ago | 98 comments

  3. Philanthropy for Hackers (wsj.com)
     53 points by petethomas 5 hours ago | 14 comments

node~$
Realtime use
$
$ vorpal 192.168.0.100:4000
websvr~$ 
websvr~$ use vorpal-hacker-news
Successfully installed vorpal-hacker-news
websvr~$ 
websvr~$ hacker-news --length 10

  Pulling top 10 stories on Hacker News:

  ...

websvr~$ 

About

Demo extension for vantage.js

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published