nnf

Node Networked Functions

npm install nnf
4 downloads in the last month

nnf Build Status

Node Networked Functions

Getting Started

Install the module with: npm install nnf

var nnf = require('nnf');

var server = nnf.createServer({
  type: 'text/json'
});
server.listen(8080);

var router = new nnf.Router({
  path: '/test',
  type: 'text/json'
}).setHandler({

  GET: {
    test: function(data, cb){

      cb({ 'test':'value' });
    }
  }
});
server.addRouter(router);

Documentation

(Coming soon)

Examples

(Coming soon)

Contributing

In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using Grunt.

Release History

(Nothing yet)

License

Copyright (c) 2013 Divan Visagie
Licensed under the MIT license.

npm loves you