@cjser/has-dom
v2.0.0-cjser.2
Published
Check if a JavaScript environment has a DOM
Maintainers
Readme
has-dom
Check if a JavaScript environment has a DOM
Install
$ npm install has-domUsage
import hasDom from 'has-dom';
// In Node.js
hasDom();
//=> false
// In the browser
hasDom();
//=> truecjser
This package is a CommonJS-compatible build generated by cjser for projects that still need require() support. The source version matches the original npm package version, with a cjser prerelease suffix for this generated build.
Original repository: https://github.com/sindresorhus/has-dom
