Skip to content

accosine/bare

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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);

About

Make node.js frameworks scram - use bare

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published