Naughty Platypus Memorabilia
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

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

install

npm i electron-pages

Downloadsweekly downloads

7

version

0.1.1

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability