browser-window

0.4.0 • Public • Published

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

License

MIT © Jamen Marz

/browser-window/

    Package Sidebar

    Install

    npm i browser-window

    Weekly Downloads

    24

    Version

    0.4.0

    License

    MIT

    Last publish

    Collaborators

    • jamen