Simple static file server built on express.
Install globally to run flyswatter
and serve static files from anywhere.
$ flyswatter --https=false --port=9300 --path=./docs
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
parameter | default |
---|---|
https |
true |
port |
3000 |
path |
./ |