Socket
Socket
Sign inDemoInstall

argv0

Package Overview
Dependencies
0
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    argv0

Compare process.argv0 to other values


Version published
Weekly downloads
1
decreased by-50%
Maintainers
1
Install size
2.65 kB
Created
Weekly downloads
 

Readme

Source

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

FAQs

Last updated on 22 Jun 2017

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc