detect-node
detect-node copied to clipboard
Detect Node.JS
I propose making the export named to ease interaction with code bases that use TypeScript to compile to both CommonJS and ES modules. This is obviously a breaking change and...
test js: ```javascript var detectNode = require('detect-node'); console.log('detectNode: ', detectNode, typeof global, typeof process, typeof process.env, process.env.NODE_ENV, Object.prototype.toString.call(typeof process !== 'undefined' ? process : 0)); ``` reuslt: > detectNode: false...
how about adding some browserstack / saucelabs badge for more credibility? I'm sure this library won't mess up with IE>8 and others, but it's more 'comforting' to see those badges...