has-dom
Check if a JavaScript environment has a DOM
Last updated 5 years ago by sindresorhus .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install has-dom 
SYNC missed versions from official npm registry.

has-dom

Check if a JavaScript environment has a DOM

Install

$ npm install has-dom

Usage

import hasDom from 'has-dom';

// In Node.js
hasDom();
//=> false

// In the browser
hasDom();
//=> true

Current Tags

  • 2.0.0                                ...           latest (5 years ago)

3 Versions

  • 2.0.0                                ...           5 years ago
  • 1.0.1                                ...           8 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 (0)
None
Dev Dependencies (2)
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |