flyswatter

2.2.0 • Public • Published

flyswatter npm version

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 ./

Dependencies (7)

Dev Dependencies (4)

Package Sidebar

Install

npm i flyswatter

Weekly Downloads

0

Version

2.2.0

License

MIT

Unpacked Size

11.5 kB

Total Files

16

Last publish

Collaborators

  • bcruddy