@xiedacon/small-server
TypeScript icon, indicating that this package has built-in type declarations

0.0.2 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i @xiedacon/small-server

Weekly Downloads

2

Version

0.0.2

License

MIT

Unpacked Size

4.66 MB

Total Files

25

Last publish

Collaborators

  • xiedacon