is-platform-node

1.0.0 • Public • Published

is-platform-node

This is a very simple script to detect if the current platform is node

Using

var isNode = require('is-platform-node');
 
if(isNode()){
  //do something
}
// then it's the browser, or other platform

Testing

  1. Run $ npm install
  2. Run $ npm test

/is-platform-node/

    Package Sidebar

    Install

    npm i is-platform-node

    Weekly Downloads

    2

    Version

    1.0.0

    License

    MIT

    Last publish

    Collaborators

    • jcguarinpenaranda123