localdir

0.1.1 • Public • Published

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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.1
    2
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.1
    2
  • 0.1.0
    0
  • 0.0.0
    1

Package Sidebar

Install

npm i localdir

Weekly Downloads

3

Version

0.1.1

License

MIT

Last publish

Collaborators

  • chilijung