# get-doc

Return `document`, if there’s DOM. Just a way simpler than [get-document](https://github.com/webmodules/get-document). Use to avoid `document is undefined` error.

`$ npm isntall get-doc`

```js
var doc = require('get-doc');

doc; //`document` in browser, `null` in node
```

[![NPM](https://nodei.co/npm/get-doc.png?downloads=true&downloadRank=true&stars=true)](https://nodei.co/npm/get-doc/)

<a href="UNLICENSE"><img src="http://upload.wikimedia.org/wikipedia/commons/6/62/PD-icon.svg" width="20"/></a>