From 9aa30eb07b336b812b2907214ae430fefbcfa0ca Mon Sep 17 00:00:00 2001 From: Luke Childs Date: Tue, 17 Jan 2017 10:11:49 +0700 Subject: [PATCH] Use require over import in node example --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index a462ce0..ec90fbe 100644 --- a/README.md +++ b/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;