browser-window

A helpful `BrowserWindow` wrapper.

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
browser-window
0.4.07 years ago7 years agoMinified + gzip package size for browser-window in KB

Readme

browser-window NPM version Build Status experimental
A helpful BrowserWindow wrapper.

// Initialize module
const browser = require('browser-window')()

app.on('ready', () => {
  // Create browser window
  const window = browser({
    title: 'Hello world',
    width: 100,
    height: 100
  })

  // Load data
  window.load('<p>Hi, how are you?</p>', {type: 'text/html'})

  // Create children windows
  const child = window.subwindow({title: 'Foo bar'})

  // Send IPC messages
  child.send('some-message', 1, 2, 3)
})

Installation

$ npm install --save browser-window

Documentation

- API Docs - Contributing

License

MIT © Jamen Marz