nnf

Node Networked Functions

Usage no npm install needed!

<script type="module">
  import nnf from 'https://cdn.skypack.dev/nnf';
</script>

README

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.