server-jovy

1.0.0 • Public • Published

Nodejs build static server

A simple http server to serve static resource files from a local directory.

Getting started

  • Install npm package global npm install -g server-jovy
  • Go to the folder you want to serve
  • Run the server server-jovy

Options

-h                         output usage information
-V, --version              output the version number
-p, --port <n>             the port to listen to for incoming HTTP connections
-c, --cors <boolean>       Use cross origin to allow all origins
-o, --open <boolean>       open server in the local browser

Example

server-jovy start server in current folder server-jovy -p 8000 start server listen to 8000 port

  • For more information, see server-jovy -h

参考

https://segmentfault.com/a/1190000018101338

Readme

Keywords

none

Package Sidebar

Install

npm i server-jovy

Weekly Downloads

2

Version

1.0.0

License

ISC

Unpacked Size

34.3 kB

Total Files

11

Last publish

Collaborators

  • jovysun