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. We may earn a commission when you buy through links labeled 'Ad' on this page.
Sorting:
- Parse/stringify contact info like `Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)`☆37Aug 9, 2021Updated 4 years ago
- Truncate a semver version: 1.2.3 → 1.2.0☆18Jul 9, 2022Updated 3 years ago
- Prepend `https://` to humanized URLs like `sindresorhus.com` and `file://` to file paths☆25Jul 9, 2022Updated 3 years ago
- Get the bundle identifier of the default browser (macOS). Example: com.apple.Safari☆13Nov 14, 2025Updated 4 months ago
- Get the version of a binary in semver format☆42Apr 3, 2024Updated last year
- Strip redundant indentation and indent the string☆55May 3, 2021Updated 4 years ago
- Node's default require extensions as a separate module☆11Oct 27, 2022Updated 3 years ago
- Create an array with values that are present in the first input array but not additional ones☆40Sep 14, 2021Updated 4 years ago
- Lowercase the keys of an object☆41Feb 2, 2026Updated last month
- Check if a number is a redirect HTTP status code☆25Apr 17, 2021Updated 4 years ago
- Check if it's the first time the process is run☆83Sep 12, 2025Updated 6 months ago
- Import a module like with `require()` but from a given path☆85Jul 8, 2022Updated 3 years ago
- Find semver versions in a string: `unicorn v1.2.3` → `1.2.3`☆46Apr 3, 2024Updated last year
- Check if a string is email like☆25Nov 11, 2025Updated 4 months ago
- Split a string at one or more indices☆25May 3, 2021Updated 4 years ago
- Convert matching double-quotes to single-quotes: `I "love" unicorns` → `I 'love' unicorns`☆57Feb 2, 2026Updated last month
- Convert a time string to seconds: '0017' → 1337☆37May 3, 2021Updated 4 years ago
- Ensure a function is stable, meaning the same input always produces the same output☆16Nov 4, 2023Updated 2 years ago
- Detect the dominant newline character of a string☆56Sep 23, 2023Updated 2 years ago
- Compose promise-returning & async functions into a reusable pipeline☆127Apr 8, 2021Updated 4 years ago
- Prepend `https://` to humanized URLs like `sindresorhus.com` and `localhost`☆66Sep 9, 2025Updated 6 months ago
- Check if a file path is a binary file☆49Apr 30, 2024Updated last year
- Regular expression for matching reserved filename characters☆53Sep 14, 2025Updated 6 months ago
- Convert a Source Map object to a comment☆16Aug 9, 2021Updated 4 years ago
- Find the closest package.json file☆166Jun 5, 2025Updated 9 months ago
- Check if a value is a function☆29May 3, 2021Updated 4 years ago
- Get namespaced config from the closest package.json☆120Nov 5, 2023Updated 2 years ago
- Get free disk space info from `df -kP`☆64Sep 13, 2025Updated 6 months ago
- Get bundle identifier from a bundle name (macOS): Safari → com.apple.Safari☆18Aug 9, 2021Updated 4 years ago
- Allow only access to known object properties using ES2015 Proxy☆89Aug 10, 2021Updated 4 years ago
- Get a random property from an object☆15Jul 2, 2024Updated last year
- Get a random key from an object☆18Jul 2, 2024Updated last year
- Check if your code is running as an npm or yarn script☆66Sep 10, 2025Updated 6 months ago
- Convert a file path to a file URL: `unicorn.jpg` → `file:///Users/sindresorhus/unicorn.jpg`