@exodus/serve-dir
serve a directory over http
Last updated 6 months ago by tenaciousmv .
MIT · Original npm · Tarball · package.json
$ cnpm install @exodus/serve-dir 
SYNC missed versions from official npm registry.

serve-dir

http server for serving a directory listing + files

Usage

# tab 1

yarn start -p 7890 -d .

# serving directory "." on port 7890
# tab 2

curl localhost:7890
# {
#   "files": [
#     ".gitignore",
#     ".prettierrc",
#     "LICENSE",
#     "README.md",
#     "cmd.js",
#     "package.json",
#     "yarn.lock"
#   ]
# }

curl localhost:7890/README.md
# # serve-dir
#
# http server for serving a directory listing + files

Current Tags

  • 1.1.0                                ...           latest (6 months ago)

3 Versions

  • 1.1.0                                ...           6 months ago
  • 1.0.1                                ...           6 months ago
  • 1.0.0                                ...           6 months ago

Copyright 2014 - 2017 © taobao.org |