Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 71d32bef25
Fetching contributors…

Cannot retrieve contributors at this time

executable file 14 lines (10 sloc) 0.269 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14
#!/usr/bin/env node

var HTTPServer = require('../lib/http-server').HTTPServer;

var httpServer = new HTTPServer({
  root: './public'
});

httpServer.start();

process.on('SIGINT', function() {
  httpServer.log('http-server stopped.'.red);
  return process.exit();
});
Something went wrong with that request. Please try again.