0.1.1 • Published 10 years ago

localdir v0.1.1

Weekly downloads
4
License
MIT
Repository
github
Last release
10 years ago

localDir

serving localhost using command line.

Install

npm install -g localdir

Command

Usage: localdir [options] <the directory you are willing to served, default to current directory>

  Options:

    -h, --help         output usage information
    -V, --version      output the version number
    -p, --port <port>  Port for server to listen on

API

serveDir(dir, port)

  • dir: the directory you want to serve at.
  • port: which the port you want your server served.

License

MIT @chilijung