Reverse minimist. Convert an object of options into an array of command-line arguments
☆187Feb 19, 2023Updated 3 years ago
Alternatives and similar repositories for dargs
Users that are interested in dargs are comparing it to the libraries listed below
Sorting:
- Truncate a semver version: 1.2.3 → 1.2.0☆18Jul 9, 2022Updated 3 years ago
- Parse/stringify contact info like `Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)`☆37Aug 9, 2021Updated 4 years ago
- Prepend `https://` to humanized URLs like `sindresorhus.com` and `file://` to file paths☆25Jul 9, 2022Updated 3 years ago
- Strip redundant indentation and indent the string☆55May 3, 2021Updated 4 years ago
- Get the version of a binary in semver format☆42Apr 3, 2024Updated last year
- Find semver versions in a string: `unicorn v1.2.3` → `1.2.3`☆46Apr 3, 2024Updated last year
- Create an array with values that are present in the first input array but not additional ones☆40Sep 14, 2021Updated 4 years ago
- Get the bundle identifier of the default browser (macOS). Example: com.apple.Safari☆13Nov 14, 2025Updated 3 months ago
- Check if it's the first time the process is run☆83Sep 12, 2025Updated 5 months ago
- Get a random property from an object☆15Jul 2, 2024Updated last year
- Check if a file path is a binary file☆49Apr 30, 2024Updated last year
- Import a module like with `require()` but from a given path☆86Jul 8, 2022Updated 3 years ago
- Lowercase the keys of an object☆41Feb 2, 2026Updated last month
- Check if a string is email like☆25Nov 11, 2025Updated 3 months ago
- Node's default require extensions as a separate module☆11Oct 27, 2022Updated 3 years ago
- Get a random key from an object☆18Jul 2, 2024Updated last year
- Prepend `https://` to humanized URLs like `sindresorhus.com` and `localhost`☆66Sep 9, 2025Updated 5 months ago
- Split a string at one or more indices☆25May 3, 2021Updated 4 years ago
- Check if a number is a redirect HTTP status code☆25Apr 17, 2021Updated 4 years ago
- Detect the dominant newline character of a string☆56Sep 23, 2023Updated 2 years ago
- Check if a string is a valid filename☆62Aug 16, 2021Updated 4 years ago
- Alphabetically sort an array of strings☆40Apr 9, 2021Updated 4 years ago
- Copy a file☆123Aug 13, 2025Updated 6 months ago
- Get namespaced config from the closest package.json☆121Nov 5, 2023Updated 2 years ago
- Get the email of an npm user☆14Feb 26, 2024Updated 2 years ago
- Convert an absolute path to tilde path: /Users/sindresorhus/dev => ~/dev☆96Jul 8, 2022Updated 3 years ago
- Regular expression for matching reserved filename characters☆53Sep 14, 2025Updated 5 months ago
- Run promise-returning & async functions in series☆71Aug 12, 2021Updated 4 years ago
- Compose promise-returning & async functions into a reusable pipeline☆127Apr 8, 2021Updated 4 years ago
- Find the closest package.json file☆166Jun 5, 2025Updated 8 months ago
- Check if argv has a specific flag☆96Jul 19, 2021Updated 4 years ago
- Get the visual width of the widest line in a string - the number of columns required to display it☆40Jan 24, 2026Updated last month
- Convert a Source Map object to a comment☆16Aug 9, 2021Updated 4 years ago
- Get free disk space info from `df -kP`☆64Sep 13, 2025Updated 5 months ago
- Get the PATH environment variable key cross-platform☆46Sep 12, 2025Updated 5 months ago
- Ensure a function is stable, meaning the same input always produces the same output☆16Nov 4, 2023Updated 2 years ago
- Strip shebang (eg. #!/bin/sh) from a string☆11Aug 18, 2021Updated 4 years ago
- Check if a value is a function☆29May 3, 2021Updated 4 years ago
- Convert a time string to seconds: '0017' → 1337☆37May 3, 2021Updated 4 years ago