0.0.2 • Published 3 years ago

@xiedacon/small-server v0.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

small-server

Build Status JavaScript Style Guide MIT

一个简单的静态资源服务器实现,可以使用在任何目录

Usage

ln -s /path-to/small-server/bin/small-server ~/.local/bin/small-server
command -v small-server

在当前目录使用
small-server

在指定目录使用
small-server -r ~/root-dir

API

  Usage: small-server [options]

  Options:

    -a, --address [value]  Address, default localhost (defaults to "localhost")
    -h, --help             Output usage information
    -p, --port <n>         Port, default 3000 (defaults to 3000)
    -r, --root [value]     Root directory to start server (defaults to cwd)
    -v, --version          Output the version number

License

MIT License

Copyright (c) 2017 xiedacon