is-npx

1.0.0 • Public • Published

is-npx

A small utility that checks if the process is running using npx

installation

npm install is-npx

Usage

Running with npx

npx node-module
// node-module/index.js
 
const isNpx = require('is-npx');
 
console.log(isNpx()) // true

Running without npx

node node-module/index.js
// node-module/index.js
 
const isNpx = require('is-npx');
 
console.log(isNpx()) // false

/is-npx/

    Package Sidebar

    Install

    npm i is-npx

    Weekly Downloads

    129

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    764 B

    Total Files

    3

    Last publish

    Collaborators

    • ranyitzhaki