Wondering what’s next for npm?Check out our public roadmap! »

    @plant/https

    1.0.1 • Public • Published

    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

    Install

    npm i @plant/https

    DownloadsWeekly Downloads

    0

    Version

    1.0.1

    License

    MIT

    Unpacked Size

    4.12 kB

    Total Files

    5

    Last publish

    Collaborators

    • avatar