Socket
Socket
Sign inDemoInstall

hoagie

Package Overview
Dependencies
4
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    hoagie

Express-like organization for command-line applications


Version published
Weekly downloads
22
increased by214.29%
Maintainers
1
Install size
117 kB
Created
Weekly downloads
 

Readme

Source

hoagie

express-like organization for command-line applications.

NPM version Build Status

Install

$ npm install hoagie --save

Usage

// math.js

var hoagie = require('hoagie');

var app = hoagie();

app.use('add', function(req, res, next) {
	var a = parseInt(req.params[1], 10);
	var b = parseInt(req.params[2], 10);

	res.send(a + b);
});

app.run(process.argv.slice(2));
$ node ./math.js add 1 1
2

See the examples directory for more code samples.

Middleware

  • hoagie-session adds "session" support

License

ISC License

Keywords

FAQs

Last updated on 17 Oct 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