1.0.7 • Published 7 months ago

herego v1.0.7

Weekly downloads
-
License
ISC
Repository
github
Last release
7 months ago

一个随启随用的静态资源服务器(可以自定义服务访问的用户名和密码)

herego是一个命令行工具,只需要一行命令($ npx herego),就可以在当前目录启动一个静态文件服务器。可以选择是否开启访问鉴权,可以自定义访问用户名和密码

Usage without install

// 在当前目录开启静态资源服务 --默认访问路径localhost:8888
$ npx herego

// 在当前目录开启静态资源服务: 自定义端口8080  --默认访问路径localhost:8080
$ npx herego 8080

// 在当前目录开启静态资源服务: 设置访问鉴权用户名wsx,密码123 --默认访问路径localhost:8888
$ npx herego wsx 123

// 在当前目录开启静态资源服务: 自定义端口8080,设置访问鉴权用户名wsx,密码123 --默认访问路径localhost:8888
$ npx herego 8080 wsx 123

Usage without Install

install

$ npm install herego -g

use

// run with default port 8888
$ herego

// run with ${port}
$ herego 8080

// run with ${username} ${password}
$ herego wsx 123

// run with ${port} ${username} ${password}
$ herego 8080 wsx 123

TODO commander Help

$ herego --help
Usage:
  herego --help // print help information
  TODO
1.0.7

7 months ago

1.0.6

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago