0.0.4 • Published 9 years ago
static-file-server v0.0.4
Static File Server
This module create a http server and serve all files using a hash.
The module only have one method (serve
). This method receives a file path as first parameter, an object to provide custom response headers and a callback to receives the file URL.
var smfs = require('smfs');
smfs.serve(process.argv[2], {
headers: {
'custom-header': 'test'
}
}, function(err, url){
console.log(url);
});
0.0.4
9 years ago