https://github.com/1000ch/simplehttp2server
simplehttp2server wrapper that makes it seamlessly available as a local dependency
https://github.com/1000ch/simplehttp2server
http http-server http2 nodejs
Last synced: 11 months ago
JSON representation
simplehttp2server wrapper that makes it seamlessly available as a local dependency
- Host: GitHub
- URL: https://github.com/1000ch/simplehttp2server
- Owner: 1000ch
- Created: 2015-12-11T01:01:01.000Z (about 10 years ago)
- Default Branch: main
- Last Pushed: 2023-03-20T20:08:26.000Z (almost 3 years ago)
- Last Synced: 2025-03-12T23:34:43.783Z (11 months ago)
- Topics: http, http-server, http2, nodejs
- Language: JavaScript
- Homepage: https://github.com/GoogleChrome/simplehttp2server
- Size: 20.1 MB
- Stars: 20
- Watchers: 3
- Forks: 5
- Open Issues: 12
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# 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
import {execFile} from 'node:child_process';
import simplehttp2server from 'simplehttp2server';
execFile(simplehttp2server, error => {
console.log('simplehttp2server is starting!');
});
```
## License
[MIT](https://1000ch.mit-license.org) © [Shogo Sensui](https://github.com/1000ch)