Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

composite-detect

compositejs245MIT0.0.3

Detect your environment: Node.js, Browser, and CommonJS.

node, browser, module, commonjs, detect, environment

readme

compositejs/detect

Detect your environment: Node.js, Browser, and CommonJS.

Installation

Via component: $ component install compositejs/detect

Standalone: Download src/detect.js and look for the global detect object.

API

detect.isBrowser == true / false
detect.isNode == true / false
detect.isModule == true / false

License

MIT