Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

process-yargs-parser

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

process-yargs-parser

Lightweight Node.js arguments parser with 0 Dependencies 🚀. **process-yargs-parser** is an opinionated yargs-parser with many needless yargs-parser configurations disabled by default.

  • 2.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

process-yargs-parser

Lightweight Node.js arguments parser with 0 Dependencies 🚀.

process-yargs-parser is an opinionated yargs-parser with many needless yargs-parser configurations disabled by default.

npm version npm downloads install size jest passed min coverage commit msg linted by git-commit-msg-linter

Example

npm i process-yargs-parser --save
const argv = require('process-yargs-parser')(process.argv.slice(2))

console.log(argv)
node ./example.js --foo=33 --bar hello

{ _: [], foo: 33, bar: 'hello' }

or parse a string!

const argv = require('process-yargs-parser')('--foo=99 --bar=33')

console.log(argv)
{ _: [], foo: 99, bar: 33 }

READ more usages in index.test.js.

Features

  • duplicate-arguments-array: default false
  • short-option-groups: default false
  • boolean-negation: default false
  • no-convert-number-string default false. will convert "1" to 1

Keywords

FAQs

Package last updated on 09 Jul 2021

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc