Browse Source

Use require over import in node example

transpile
Luke Childs 8 years ago
parent
commit
9aa30eb07b
  1. 4
      README.md

4
README.md

@ -49,8 +49,8 @@ You can make the function pure by passing in a `document` object. This is really
For example this works in Node.js:
```js
import jsdom from 'jsdom';
import whenDomReady from 'when-dom-ready';
const jsdom = require('jsdom');
const whenDomReady = require('when-dom-ready');
const doc = jsdom.jsdom('').defaultView.document;

Loading…
Cancel
Save