@plant/electron

0.1.0 • Public • Published

Electron

Helpers to make plant work in Electron, using Electrons streaming API.

Install

npm i @plant/electron

Usage

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

const plant = new Plant()

plant.use(({res}) => {
  res.json({ok: true})
})

createServer(plant)
// Serve requests via https:// protocol
.interceptProtocol('https')
// Serve requests via my:// protocol (made up).
.registerProtocol('my')

License

MIT © Rumkin

Package Sidebar

Install

npm i @plant/electron

Weekly Downloads

0

Version

0.1.0

License

MIT

Unpacked Size

2.29 kB

Total Files

4

Last publish

Collaborators

  • rumkin