@plant/http

1.0.4 • Public • Published

Node HTTP for Plant

Plant adapter for native node.js http module. It creates server listener from plant instance.

Install

npm i @plant/http

Usage

const Plant = require('@plant/plant');
const {createServer} = require('@plant/http');

const plant = new Plant();

plant.use(({res}) => {
  res.body = 'Ok';
});

createServer(plant).listen(80);

License

MIT © Rumkin

Readme

Keywords

Package Sidebar

Install

npm i @plant/http

Weekly Downloads

7

Version

1.0.4

License

MIT

Unpacked Size

3.45 kB

Total Files

4

Last publish

Collaborators

  • rumkin