nnf

Node Networked Functions

nnf

Node Networked Functions

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: {
    testfunction(datacb){
 
      cb({ 'test':'value' });
    }
  }
});
server.addRouter(router);
 

(Coming soon)

(Coming soon)

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.

(Nothing yet)

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