1.0.0 • Published 7 years ago
is-platform-node v1.0.0
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
- Run
$ npm install
- Run
$ npm test
1.0.0
7 years ago