Socket
Socket
Sign inDemoInstall

vorpal-hacker-news

Package Overview
Dependencies
55
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    vorpal-hacker-news

Demo extension for Vorpal.js


Version published
Weekly downloads
7
decreased by-22.22%
Maintainers
1
Install size
7.85 MB
Created
Weekly downloads
 

Readme

Source

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~$ 

Keywords

FAQs

Last updated on 24 Aug 2015

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc