express-file-api

Quickly boot up an express server using the file-system


Keywords
express, file api, api, server
License
ISC
Install
npm install express-file-api@1.1.1

Documentation

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.