thedesk/app/node_modules/is-npm/index.js

10 lines
269 B
JavaScript
Raw Normal View History

2019-09-13 00:38:13 +10:00
'use strict';
const isNpm =
'npm_config_username' in process.env ||
'npm_package_name' in process.env ||
'npm_config_heading' in process.env;
// TODO: This named export should be replaced by a default export as soon as we move to ES modules
exports.isNpm = isNpm;