flyswatter
v2.2.0
Published
self-signing static file server + dev proxy
Downloads
8
Readme
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
| ./
|