quick-static-server

Express.js based node server for quick static deployments

Usage no npm install needed!

<script type="module">
  import quickStaticServer from 'https://cdn.skypack.dev/quick-static-server';
</script>

README

quick-static-server

Express.js based node server for quick static deployments

npm: github: github: Build Status

Install

npm install quick-static-server

Usage

npm start
Options

Edit options.json to set the deployment. Avaliable options are:

  • publicPath {String} [optional] - defaults to __dirname/www - It should point to the path where your static code is placed
  • serverOptions {Object} [optional] - defaults to {} - Accepts these options
  • port {String} [optional] - defaults to 9000 - The port to deploy the server

Tests

It uses mocha and chai

npm test

License

MIT