electron-pages
v0.1.1
Published
Manage pages in Electron like a pro.
Downloads
2
Readme
electron-pages
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
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D