Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

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

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 src
Octocat-spinner-32 .gitignore
Octocat-spinner-32 Makefile
Octocat-spinner-32 Readme.md
Octocat-spinner-32 component.json
Octocat-spinner-32 package.json
Readme.md

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

Something went wrong with that request. Please try again.