Skip to content

bcruddy/flyswatter

Repository files navigation

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

About

self-signing static file server + dev proxy

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published