3.4.1 • Published 8 years ago

hoagie v3.4.1

Weekly downloads
1
License
ISC
Repository
github
Last release
8 years ago

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(hoagie.argv);
$ node ./math.js add 1 1
2

See the examples directory for more code samples.

app.use(command, fn...)

Adds each middleware function to the stack, optionally under the command space. Each middleware should be a function of the signature function(req, res, next).

Middleware

License

ISC License

3.4.1

8 years ago

3.4.0

9 years ago

3.3.0

10 years ago

3.2.0

10 years ago

3.1.0

10 years ago

3.0.0

10 years ago

2.4.0

10 years ago

2.3.1

10 years ago

2.3.0

10 years ago

2.2.3

10 years ago

2.2.2

10 years ago

2.2.1

10 years ago

2.2.0

10 years ago

2.1.5

10 years ago

2.1.4

10 years ago

2.1.3

10 years ago

2.1.2

10 years ago

2.1.1

10 years ago

2.1.0

10 years ago

2.0.2

10 years ago

2.0.0

10 years ago

0.6.2

11 years ago

0.6.1

11 years ago

0.1.1

11 years ago

0.1.0

11 years ago