0.1.1 • Published 8 years ago

electron-pages v0.1.1

Weekly downloads
1
License
MIT
Repository
github
Last release
8 years ago

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