Total Pageviews

Thursday, 3 December 2020

静态HTTP Server程序nodeserver

 SimpleHTTPServer based on Nodejs.

Install

You must install it globally to use the CLI command

yarn global add hs-nodeserver

Usage

$ nodeserver --help

  Usage: nodeserver [options]

  Options:

    -h, --help              output usage information
    -V, --version           output the version number
    -d, --directory <dir>   Directory to serve, default to pwd
    -l, --listen <host/ip>  IP to listen to, default to localhost
    -p, --port <num>        Port, default to 3000
from https://github.com/haishanh/nodeserver

No comments:

Post a Comment