0.0.1 • Published 7 years ago

argv0 v0.0.1

Weekly downloads
2
License
ISC
Repository
github
Last release
7 years ago

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