UNPKG

kompo-ui

Version:

A collection of interface components (such as filterlists, datepickers and toolbars) created with the Kompo library

25 lines (21 loc) 516 B
/** * Static HTTP Server * * Create a static file server instance to serve files * and folder in the './examples' folder */ // modules var static = require('node-static'), port = 8080, http = require('http'); // config var file = new static.Server('./examples', { cache: 3600, gzip: true }); // serve http.createServer(function (request, response) { request.addListener('end', function () { file.serve(request, response); }).resume(); }).listen(port);