0.0.1 • Published 8 years ago
argv0 v0.0.1
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 argv0const argv0 = require('argv0')
console.log(argv0())License
ISC © Contributors
0.0.1
8 years ago