1.0.1 • Published 5 years ago

@plant/https v1.0.1

Weekly downloads
-
License
MIT
Repository
-
Last release
5 years ago

Node HTTPS for Plant

Plant adapter for node.js https module. It creates server listener from plant instance and https options.

Install

npm i @plant/https

Usage

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

const plant = new Plant();

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

createServer(plant, {
  // get SSL key and cert somehow
  key,
  cert,
})
.listen(443);

Copyright

MIT © Rumkin

1.0.1

5 years ago

1.0.0

6 years ago

0.2.0-alpha4

6 years ago

0.2.0-alpha3

6 years ago

0.2.0-alpha.2

6 years ago

0.2.0-alpha.1

6 years ago

0.2.0-alpha

6 years ago

0.1.0

7 years ago