1.0.4 • Published 7 years ago

get-doc v1.0.4

Weekly downloads
9,558
License
Unlicense
Repository
github
Last release
7 years ago

get-doc

Return document, if there’s DOM. Just a way simpler than get-document. Use to avoid document is undefined error.

$ npm isntall get-doc

var doc = require('get-doc');

doc; //`document` in browser, `null` in node

NPM