2.2.0 • Published 4 years ago

flyswatter v2.2.0

Weekly downloads
6
License
MIT
Repository
github
Last release
4 years ago

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

parameterdefault
httpstrue
port3000
path./
2.2.0

4 years ago

2.1.0

6 years ago

2.0.7

6 years ago

2.0.6

6 years ago

2.0.5

6 years ago

2.0.4

6 years ago

2.0.3

6 years ago

2.0.2

6 years ago

2.0.1

6 years ago

2.0.0

6 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago