GitShow/vercel/arg
vercel

arg

Simple argument parsing

by vercel
argumentargvclicommandparser
Star on GitHubForkWebsitenpm

JavaScript

1.3k stars57 forks16 contributorsQuiet · 2y agoSince 20175.0.2MIT

Meet the team

See all 16 on GitHub →
Qix-
Qix-31 contributions
blakeembrey
blakeembrey5 contributions
timneutkens
timneutkens5 contributions
yuler
yuler4 contributions
leo
leo3 contributions
leerob
leerob3 contributions
arjunsajeev
arjunsajeev2 contributions
herber
herber2 contributions

Languages

View on GitHub →
JavaScript100%

Commit activity

Last 12 weeks · 0 commits

Full graph →

Community health

2 of 6 standards met

Community profile →
50
✓README✓License○Contributing○Code of Conduct○Issue Template○PR Template

Recent PRs & issues

Quiet · Last activity 2y ago
See all on GitHub →
leerob
Convert to ES ModulesOpenIssue
leerob · 1mo ago
xywang18
ReDoS vulnerability in index.jsOpenIssue

Description ReDoS vulnerability is an algorithmic complexity vulnerability that usually appears in backtracking-kind regex engines, e.g. the javascript default regex engine. The attacker can construct malicious input to trigger the worst-case time complexity of the regex engine to make a denial-of-service attack. In this project, here has used the ReDoS vulnerable regex that can be triggered by the below PoC: How to repair The cause of this vulnerability is the use of the backtracking-kind regex engine. I recommend the author to use the RE2 regex engine developed by google, but it doesn't support lookaround and backreference extension features, so we need to change the original regex and add additional code constraints. Here is my repair solution: Using this code snippet to replace the code in line 156 can repair this vulnerability. The match semantics of the new regex + code constraint above is equivalent to the original regex. I hope the author can adopt this repair solution and I would be very grateful. Thanks!

xywang18 · 1mo ago
JuanM04
Flags with optional valuesOpenIssue

Is there a way to have optional flag values? Something like the following: Given it should return , given it should return something like , and given it should return ,

JuanM04 · 1mo ago

Recent fixes

View closed PRs →
jaydenseric
Short args can't be used with =ClosedIssue

Short args can't be used with . Is this intentional? Results in: A similar error happens for aliases:

jaydenseric · 1y ago
jakehamilton
fix(types): export flagSymbolMergedPR

This commit fixes #62. I've tested it locally in my project by running in the repository with this fix applied, and then running in my project. The TypeScript error that I was initially getting is resolved and functions properly.

jakehamilton · 1y ago
Structured data for AI agents

Repository: vercel/arg. Description: Simple argument parsing Stars: 1293, Forks: 57. Primary language: JavaScript. Languages: JavaScript (100%). License: MIT. Homepage: https://npmjs.com/arg Topics: argument, argv, cli, command, parser. Latest release: 5.0.2 (4y ago). Open PRs: 12, open issues: 6. Last activity: 2y ago. Community health: 50%. Top contributors: Qix-, blakeembrey, timneutkens, yuler, leo, leerob, arjunsajeev, herber, 0xflotus, flexdinesh and others.

·@ofershap

Replace github.com with gitshow.dev