1.0.0 • Published 7 years ago
is-npx v1.0.0
is-npx
A small utility that checks if the process is running using npx
installation
npm install is-npxUsage
Running with npx
npx node-module// node-module/index.js
const isNpx = require('is-npx');
console.log(isNpx()) // trueRunning without npx
node node-module/index.js// node-module/index.js
const isNpx = require('is-npx');
console.log(isNpx()) // false1.0.0
7 years ago