Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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)