Browse Source

Add usage section to readme

pull/2/head
Luke Childs 8 years ago
parent
commit
5017aa5cd1
  1. 14
      README.md

14
README.md

@ -16,6 +16,20 @@ Or if you're just using for testing you'll probably want:
npm install --save-dev window npm install --save-dev window
``` ```
## Usage
```js
import Window from 'window';
const window = new Window();
const div = window.document.createElement('div');
// HTMLDivElement
div instanceof window.HTMLElement
// true
```
## License ## License
MIT © Luke Childs MIT © Luke Childs

Loading…
Cancel
Save