thedesk/app/node_modules/is-npm/index.js
2019-09-12 23:38:13 +09:00

10 lines
269 B
JavaScript

'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;