node package manager

routerdir

Router-dir

serving localhost for react-router

Install

npm install -g routerdir

Command

Usage: routerdir [options] <the html file you are willing to served, default to current ./index.html>
 
  Options:
 
    -h, --help         output usage information
    -V, --version      output the version number
    -p, --port <port>  Port for server to listen on

API

routerDir(html, port)

  • html: the html file you want to serve at.
  • port: which the port you want your server served.

License

MIT @chilijung