Get unlimited public & private packages + package-based permissions with npm Pro.Get started »

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;

Keywords

none

Install

npm i nw-context

DownloadsWeekly Downloads

0

Version

0.0.1

License

none

Last publish

Collaborators

  • avatar