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.
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())
ISC © Contributors