ava
ava copied to clipboard
Replace arrgv with args-tokenizer
Recently published args-tokenizer package. We use it at Webstudio for parsing cURL on paste. Also used at https://github.com/antfu-collective/bumpp.
There are a few benefits
- published with type definitions
- ~~parser is forgiving to unclosed quotes which can be more user friendly~~
- actively supported, arrgv last release was 5 years ago
The 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