argv0

0.0.1 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i argv0

Weekly Downloads

1

Version

0.0.1

License

ISC

Last publish

Collaborators

  • nexdrew