get-doc
Get document, if there’s DOM.
Last updated 9 years ago by dfcreative .
Unlicense · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm 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 (9 years ago)

5 Versions

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

Copyright 2013 - present © cnpmjs.org | Home |