Narcissistic Pickle Meister

    @digitalronin/browser-or-node

    1.0.2 • Public • Published

    browser-or-node

    NPM npm (scoped) Build Status

    Check for browser or node environment

    Installing

    # using NPM
    > npm install @digitalronin/browser-or-node -S
    
    # using Yarn
    > yarn add @digitalronin/browser-or-node --save
    

    Running

    const { isNode, isBrowser, getInfo } = require('browser-or-node');
    console.log(isNode());
    console.log(isBrowser());
    console.log(getInfo());

    Install

    npm i @digitalronin/browser-or-node

    DownloadsWeekly Downloads

    0

    Version

    1.0.2

    License

    MIT

    Unpacked Size

    6.36 kB

    Total Files

    9

    Last publish

    Collaborators

    • ronniechong