detect-node icon indicating copy to clipboard operation
detect-node copied to clipboard

Detect Node.JS

Results 3 detect-node issues
Sort by recently updated
recently updated
newest added

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...