Neighbor's Preppy Maltese
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

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

3

version

0.0.1

license

none

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar