UNPKG

is-node

Version:

Detect if current process is a node application or not.

5 lines (3 loc) 234 B
// Coding standard for this project defined @ https://github.com/MatthewSH/standards/blob/master/JavaScript.md 'use strict'; exports = module.exports = !!(typeof process !== 'undefined' && process.versions && process.versions.node);