From 0735d8255292648bc8c96846af50d41ca3e1e004 Mon Sep 17 00:00:00 2001 From: Luke Childs Date: Sat, 1 Apr 2017 16:43:43 +0800 Subject: [PATCH] Recommend browser-env if required --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 2fb32ad..bc5c828 100644 --- a/README.md +++ b/README.md @@ -93,6 +93,10 @@ module.exports = function(text, opts = {}) { You can see an example of this pattern in my `create-node` module. Specifically [src/create-node.js](https://github.com/lukechilds/create-node/blob/master/src/create-node.js) and [test/unit.js](https://github.com/lukechilds/create-node/blob/master/test/unit.js). +## What about dependencies? + +Sometimes you may have dependencies that you can't pass a window object to. In that scenario you can alternatively use [`browser-env`](https://github.com/lukechilds/browser-env) which will simulate a global browser environment. + ## License MIT © Luke Childs