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.
- Host: GitHub
- URL: https://github.com/kaosat-dev/detect
- Owner: kaosat-dev
- Created: 2014-10-10T07:21:01.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2014-10-10T07:23:12.000Z (over 11 years ago)
- Last Synced: 2025-02-13T14:52:54.494Z (over 1 year ago)
- Language: JavaScript
- Size: 97.7 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
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