3.4.1 • Published 7 years ago

hoagie v3.4.1

Weekly downloads
1
License
ISC
Repository
github
Last release
7 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

7 years ago

3.4.0

8 years ago

3.3.0

9 years ago

3.2.0

9 years ago

3.1.0

9 years ago

3.0.0

9 years ago

2.4.0

9 years ago

2.3.1

9 years ago

2.3.0

9 years ago

2.2.3

9 years ago

2.2.2

9 years ago

2.2.1

9 years ago

2.2.0

9 years ago

2.1.5

9 years ago

2.1.4

9 years ago

2.1.3

9 years ago

2.1.2

9 years ago

2.1.1

9 years ago

2.1.0

9 years ago

2.0.2

9 years ago

2.0.0

9 years ago

0.6.2

10 years ago

0.6.1

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago