# nw-context

> Helper functions for passing document/window context into node-webkit

Latest version **0.0.1** (published 2013-08-03) · MIT license · 0 weekly downloads

## Install

```sh
npm install nw-context
pnpm add nw-context
yarn add nw-context
bun add nw-context
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.1 |
| Published | 2013-08-03 |
| First published | 2013-08-03 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Jason Frame |
| Maintainers | jaz303 |
| Keywords | node-webkit, document, window |

## Links

- npm: https://www.npmjs.com/package/nw-context
- Repository: https://github.com/jaz303/nw-context
- npm.io page: https://npm.io/package/nw-context

## Alternatives

- [@cantoo/pdf-lib](https://npm.io/package/@cantoo/pdf-lib.md) — 297.9K weekly downloads
- [datatables.net-buttons](https://npm.io/package/datatables.net-buttons.md) — 200.1K weekly downloads
- [@ckeditor/ckeditor5-export-pdf](https://npm.io/package/@ckeditor/ckeditor5-export-pdf.md) — 167.0K weekly downloads
- [scanbot-web-sdk](https://npm.io/package/scanbot-web-sdk.md) — 15.0K weekly downloads
- [@syncfusion/ej2-angular-pdfviewer](https://npm.io/package/@syncfusion/ej2-angular-pdfviewer.md) — 8.8K weekly downloads

## Recent versions

- 0.0.1 (latest) — 2013-08-03

## README

# 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;

---
_Source: https://npm.io/package/nw-context · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
