2.2.0 • Published 5 years ago

flyswatter v2.2.0

Weekly downloads
6
License
MIT
Repository
github
Last release
5 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

5 years ago

2.1.0

7 years ago

2.0.7

7 years ago

2.0.6

7 years ago

2.0.5

7 years ago

2.0.4

7 years ago

2.0.3

7 years ago

2.0.2

7 years ago

2.0.1

7 years ago

2.0.0

7 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago