elgs

elgs/splitargs

Splits strings into tokens by given separator, treating quoted part as a single token.

JavaScript
17
6
No license

The `splitargs` npm package splits a string into tokens using a specified separator while preserving quoted sections as single tokens, handling both single and double quotes correctly. It’s ideal for developers who need robust command‑line‑style argument parsing or CSV‑like parsing in JavaScript/Node environments where quoted content must not be broken apart.

Total donated
Undistributed
Share with your subscribers: