vorpal-hacker-news
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-newsnpm install vorpal
Programmatic use
// index.jsvar Vorpal = hn = ; var vorpal = ; vorpal ;
$$ node index.jsnode~$ node~$ hacker-news --length 3 Pulling top 3 stories on Hacker News: 1. I Dont Believe in God, but I Believe in Lithium 171 points by pepys 11 hours ago | 64 comments 2. Running Lisp in Production 300 points by f00biebletch 15 hours ago | 98 comments 3. Philanthropy
Realtime use
$$ vorpal 192.168.0.100:4000websvr~$ websvr~$ use vorpal-hacker-newsSuccessfully installed vorpal-hacker-newswebsvr~$ websvr~$ hacker-news --length 10 Pulling top 10 stories on Hacker News: ... websvr~$