stack_salehi

1.0.15 • Public • Published

stack_salehi:

Stack is a minimal http module system for node.js.

Install:

If you use npm, then install stack_salehi via npm. Also, remember to put it as a dependency in your own project's package.json file.

npm install stack_salehi:

If you don't use npm (Like you're on a phone), then simply copy the single file stack.js somewhere you can get to it.

Example:

http.createServer(require('stack_salehi')( require('loggerMiddleware')(), require('staticMiddleware')(root, mount), //... )).listen(8080);

Explanation:

As you can see, it takes a list of handler functions and will chain them up for you.

Readme

Keywords

none

Package Sidebar

Install

npm i stack_salehi

Weekly Downloads

1

Version

1.0.15

License

ISC

Unpacked Size

1.97 kB

Total Files

3

Last publish

Collaborators

  • nafisehsalehi