Have ideas to improve npm?Join in the discussion! »

bare

0.0.2 • Public • Published

bare

Make node.js frameworks scram - use bare

A bare example:

'use strict';
var bare = require('bare')
  , http = require('http');

bare.router.on('get', '/test', function(req, res) {
  res.writeHead(200, {'Content-Type': 'text/plain'});
  res.end('test\n');
  console.log('test');
});

http.createServer(function(req, res) {
  bare.router.dispatch(req, res, console.log);
}).listen(8080);

Install

npm i bare

DownloadsWeekly Downloads

2

Version

0.0.2

License

BSD-2-Clause

Last publish

Collaborators

  • avatar
  • avatar