nw-context

0.0.1 • Public • Published

nw-context

Store browser document and window objects in a module for later retrieval from node-webkit modules running in the node context.

Set up in the browser:

var context = require('nw-context');
context.set({
	window: window,
	document: document
});

Then from within other modules:

var window = require('nw-context').window,
	document = require('nw-context').document;

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.1
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.1
    1

Package Sidebar

Install

npm i nw-context

Weekly Downloads

1

Version

0.0.1

License

MIT

Last publish

Collaborators

  • jaz303