express-file-api

Quickly boot up an express server using the file-system

Usage no npm install needed!

<script type="module">
  import expressFileApi from 'https://cdn.skypack.dev/express-file-api';
</script>

README

File Express

You must install the version of express to use globally as this package doesn't ship with express

Create an api from the file system

Options

  -d, --dir Directory   The base directory to bootstrap api.
  -x, --ext Extension   The extension for the files to use. This requires the . in the extension name
  -r, --route String    A path to place in front of all routes, eg /api/v1
  -p, --port Number     The port to boot the application on. Default is 3000
  --help string         Print this usage guide.