electron-pages

0.1.1 • Public • Published

electron-pages

NPM version NPM downloads

Install

$ npm install --save electron-pages

Usage

// usually used in renderer process
const when = require('electron-pages')
 
// when you load index.html in electron
when('index', () => {
  // bootstrap your main app
})
 
// when you load about.html in electron
when('about', () => {
  // bootstrap the app for about page
})

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

License

MIT © EGOIST

Readme

Keywords

Package Sidebar

Install

npm i electron-pages

Weekly Downloads

1

Version

0.1.1

License

MIT

Last publish

Collaborators

  • rem