https://github.com/creationix/node-router
A simple http server for node.js that has sinatra like qualities. Ideal for generating web services via node.
https://github.com/creationix/node-router
Last synced: about 1 year ago
JSON representation
A simple http server for node.js that has sinatra like qualities. Ideal for generating web services via node.
- Host: GitHub
- URL: https://github.com/creationix/node-router
- Owner: creationix
- Created: 2009-08-13T05:23:11.000Z (almost 17 years ago)
- Default Branch: master
- Last Pushed: 2010-08-26T18:17:35.000Z (almost 16 years ago)
- Last Synced: 2025-03-24T04:13:45.857Z (about 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 126 KB
- Stars: 165
- Watchers: 6
- Forks: 27
- Open Issues: 4
-
Metadata Files:
- Readme: README.markdown
Awesome Lists containing this project
README
# node-router
Node-router is a small simple node.js http server that makes building simple web-services super simple.
## Node libraries
There are two ways to include this library in your node project. You can either copy the node-router.js file in
the same directory as your script and require it with a relative path:
var NodeRouter = require('./node-router');
Or you can copy `node-router.js` to somewhere in your `require.paths` array. Then you can use a global require
like:
var NodeRouter = require('node-router');
See the [node docs][] for more details.
[node docs]: http://nodejs.org/api.html#_modules