-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: drop CLI functionality according to simplehttp2server-cli
- Loading branch information
Showing
2 changed files
with
5 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,26 @@ | ||
# simplehttp2server [![Build Status](https://travis-ci.org/1000ch/simplehttp2server.svg?branch=master)](https://travis-ci.org/1000ch/simplehttp2server) | ||
|
||
> simplehttp2server serves the current directory on an HTTP/2.0 capable server. This server is for development purposes only. | ||
> | ||
> Wrapper for: https://github.com/GoogleChromeLabs/simplehttp2server | ||
> [simplehttp2server](https://github.com/GoogleChromeLabs/simplehttp2server) serves the current directory on an HTTP/2.0 capable server. This server is for development purposes only. | ||
You probably want [simplehttp2server-cli](https://github.com/1000ch/simplehttp2server-cli) instead. | ||
|
||
## Install | ||
|
||
``` | ||
$ npm install --save simplehttp2server | ||
``` | ||
|
||
|
||
## Usage | ||
|
||
```js | ||
const {execFile} = require('child_process'); | ||
const simplehttp2server = require('simplehttp2server'); | ||
|
||
execFile(simplehttp2server, err => { | ||
console.log('Simple http2 server is starting!'); | ||
console.log('simplehttp2server is starting!'); | ||
}); | ||
``` | ||
|
||
|
||
## CLI | ||
|
||
``` | ||
$ npm install --global simplehttp2server | ||
``` | ||
|
||
``` | ||
$ simplehttp2server --help | ||
``` | ||
|
||
|
||
## License | ||
|
||
MIT | ||
[MIT](https://1000ch.mit-license.org) © [Shogo Sensui](https://github.com/1000ch) |