Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    composite-detectpublic

    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

    Keywords

    none

    install

    npm i composite-detect

    Downloadsweekly downloads

    3

    version

    0.0.3

    license

    none

    repository

    github.com

    last publish

    collaborators

    • avatar