get-doc
Get document, if there’s DOM.
Last updated 7 years ago by dfcreative .
Unlicense · Repository · Bugs · Original npm · Tarball · package.json
$ npm install get-doc 
SYNC missed versions from official npm registry.

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

Current Tags

  • 1.0.4                                ...           latest (7 years ago)

5 Versions

  • 1.0.4                                ...           7 years ago
  • 1.0.3                                ...           10 years ago
  • 1.0.2                                ...           10 years ago
  • 1.0.1                                ...           10 years ago
  • 1.0.0                                ...           10 years ago
Maintainers (1)
Downloads
Total 0
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (1)
Dev Dependencies (0)
None
Dependents (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE