reserv

0.1.0 • Public • Published

Reserv

Static file server with auto-reloading written in reason native. This project is heavily inspired by servor but not as polished and without all the nice features it comes with. I built this mostly for fun and learning so if you need something robust, definitely reach out for something else. There are great alternatives such as servor, sirv or serve.

Install

$ npm install --save reserv

Note: This module can also be installed and used globally

Usage

$ reserv --help
NAME
       reserv - Start a static file server

SYNOPSIS
       reserv [OPTION]... [DIRECTORY]

ARGUMENTS
       DIRECTORY (absent=.)
           Directory to serve

OPTIONS
       -p PORT, --port=PORT (absent=8000)
           Port the server will be running on.

       -r ROOT_FILE, --rootFile=ROOT_FILE (absent=index.html)
           Default file to serve if no path (/).

BUGS
       File bug reports at https://github.com/tatchi/reserv

COMMON OPTIONS
       --help[=FMT] (default=auto)
           Show this help in format FMT. The value FMT must be one of `auto',
           `pager', `groff' or `plain'. With `auto', the format is `pager` or
           `plain' whenever the TERM env var is `dumb' or undefined.

       --version
           Show version information.

Example

reserv build -p 8000 -r index.html

Credit ❤️

Thanks to ulrikstrid and aantron for their awesome libraries (morph & luv)

Readme

Keywords

none

Package Sidebar

Install

npm i reserv

Weekly Downloads

3

Version

0.1.0

License

MIT

Unpacked Size

17.2 MB

Total Files

22

Last publish

Collaborators

  • tatchi