Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

argv0

nexdrew10ISC0.0.1

Compare process.argv0 to other values

readme

argv0

Compare process.argv0 to other values

A mini tool to show the difference between process.argv0 (added in Node 6.4.0) and other methods for determining the name of the bin script being executed for a globally installed package.

Installation and Usage

As global bin:

$ npm install -g argv0
$ argv0
{ argv0: 'node',
  argv1basename: 'argv0',
  'yargs$0': '/usr/local/bin/argv0' }

As module:

$ npm install argv0
const argv0 = require('argv0')
console.log(argv0())

License

ISC © Contributors