Licence
MIT
Version
2.2.0
Deps
7
Size
11 kB
Vulns
25
Weekly
0
flyswatter 
Simple static file server built on express.
cli usage
Install globally to run flyswatter and serve static files from anywhere.
$ flyswatter --https=false --port=9300 --path=./docs
programatic usage
const flyswatter = require('flyswatter');
flyswatter({https: false, path: './docs'}).then(server => {
server.listen(9300, callback);
});
*note the port config option must be provided explicitly to server.listen
config
| parameter | default |
|---|---|
https |
true |
port |
3000 |
path |
./ |