Plant adapter for node.js https module. It creates server listener from plant instance and https options.
npm i @plant/https
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);
MIT © Rumkin