Skip to content

Latest commit

 

History

History
30 lines (18 loc) · 351 Bytes

readme.md

File metadata and controls

30 lines (18 loc) · 351 Bytes

has-dom

Check if a JavaScript environment has a DOM

Install

$ npm install has-dom

Usage

const hasDom = require('has-dom');

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

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

License

MIT © Sindre Sorhus