An open API service indexing awesome lists of open source software.

https://github.com/kaosat-dev/detect

Detect your environment: Node.js, Browser, and CommonJS.
https://github.com/kaosat-dev/detect

Last synced: about 1 year ago
JSON representation

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

Awesome Lists containing this project

README

          

# compositejs/detect

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

## Installation

**Via `component`:** `$ component install compositejs/detect`

**Node.js:** `$ npm install composite-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