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

Readme

Keywords

Package Sidebar

Install

npm i is-platform-node

Weekly Downloads

1

Version

1.0.0

License

MIT

Last publish

Collaborators

  • jcguarinpenaranda123