- Notifications
You must be signed in to change notification settings - Fork1.4k
Replace arrgv with args-tokenizer#3364
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
base:main
Are you sure you want to change the base?
Uh oh!
There was an error while loading.Please reload this page.
Conversation
Recently published args-tokenizer package. We use it at Webstudio forparsing cURL on paste. Used athttps://github.com/antfu-collective/bumpp.There are two benefits- published with type definitions- parser is forgiving to unclosed quotes which can be more user friendlyThe package also is esm only but used only in CLI so should not be aproblem with commonjs. Though I can add cjs support if necessary.https://github.com/TrySound/args-tokenizer
sindresorhus commentedDec 29, 2024
I don't think silently forgiving invalid input is an improvement. |
TrySound commentedDec 29, 2024
Will "strict" option work for you? I can add it |
TrySound commentedDec 29, 2024
Upgraded to new strict by default version and reverted test changes |
novemberborn commentedJun 6, 2025 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
@TrySound apologies for ignoring this for so long. What would give more confidence is if you incorporate |
novemberborn commentedJun 6, 2025
To follow up on this, you're asking to replace a dependency that as far as I know hasn't caused problems with a modern version you wrote. That's great! But the less work for me to verify the behavior is exactly the same, the better. |
TrySound commentedJun 7, 2025
Of course! Thanks for your response. Will update PR when release 1.0 |
Uh oh!
There was an error while loading.Please reload this page.
Recently published args-tokenizer package. We use it at Webstudio for parsing cURL on paste. Also used athttps://github.com/antfu-collective/bumpp.
There are a few benefits
parser is forgiving to unclosed quotes which can be more user friendlyThe package also is esm only but used only in CLI so should not be a problem with commonjs. Though I can add cjs support if necessary.
https://github.com/TrySound/args-tokenizer