quick-static
v1.0.10
Published
Serve static files over http from Command Line Interface [npm](https://www.npmjs.com/package/quick-static)
Downloads
4
Maintainers
Readme
serve static files
Serve static files over http from Command Line Interface
npm
Very small wrapper around express & serve-index
Colored logs powered by colors
For a more powerfull static server, able to compile and deliver pug & sass on the fly, see super-quick-static (@npm)
install
$ npm i quick-static -g
usage
$ quick-static
// serve the current directory on http://localhost:8000
$ quick-static ./public 12345
// serve the folder 'public' from the current directory on http://localhost:12345
$ quick-static /an/absolute/path 6666
// serve a absolute folder on http://localhost:6666
$ quick-static . 4000 auto
// serve current directory on http://localhost:4000
// if the port 4000 is not available,
// will search for the next available port