composite-detect

0.0.3 • Public • Published

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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.3
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.3
    0
  • 0.0.2
    0
  • 0.0.1
    0

Package Sidebar

Install

npm i composite-detect

Weekly Downloads

0

Version

0.0.3

License

MIT

Last publish

Collaborators

  • tcr