Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 19 days 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 (almost 9 years ago)
- Default Branch: main
- Last Pushed: 2023-03-20T20:08:26.000Z (over 1 year ago)
- Last Synced: 2024-10-12T23:51:24.631Z (about 1 month ago)
- Topics: http, http-server, http2, nodejs
- Language: JavaScript
- Homepage: https://github.com/GoogleChrome/simplehttp2server
- Size: 20.1 MB
- Stars: 19
- Watchers: 4
- Forks: 5
- Open Issues: 12
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# simplehttp2server ![GitHub Actions Status](https://github.com/1000ch/simplehttp2server/workflows/test/badge.svg?branch=main)
> [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)