Skip to content

Commit

Permalink
refactor: drop CLI functionality according to simplehttp2server-cli
Browse files Browse the repository at this point in the history
  • Loading branch information
1000ch committed Jun 3, 2020
1 parent df649b6 commit a3312ac
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 21 deletions.
3 changes: 0 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@
"engines": {
"node": ">=10"
},
"bin": {
"simplehttp2server": "cli.js"
},
"scripts": {
"postinstall": "node lib/install.js",
"test": "xo && ava"
Expand Down
23 changes: 5 additions & 18 deletions readme.md
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)

0 comments on commit a3312ac

Please sign in to comment.