get-doc

1.0.4 • Public • Published

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

Dependencies (1)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i get-doc

    Weekly Downloads

    13,344

    Version

    1.0.4

    License

    Unlicense

    Last publish

    Collaborators

    • dfcreative