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)`☆38Aug 9, 2021Updated 4 years ago
- Truncate a semver version: 1.2.3 → 1.2.0☆17Jul 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 7 months ago
- Get the version of a binary in semver format☆43Apr 3, 2024Updated 2 years ago
- Managed Kubernetes at scale on DigitalOcean • AdDigitalOcean Kubernetes includes the control plane, bandwidth allowance, container registry, automatic updates, and more for free.
- Strip redundant indentation and indent the string☆55May 3, 2021Updated 5 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 5 months ago
- Check if a number is a redirect HTTP status code☆25Apr 17, 2021Updated 5 years ago
- Check if it's the first time the process is run☆83Sep 12, 2025Updated 9 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 2 years ago
- Check if a string is email like☆25Nov 11, 2025Updated 7 months ago
- Managed Database hosting by DigitalOcean • AdPostgreSQL, MySQL, MongoDB, Kafka, Valkey, and OpenSearch available. Automatically scale up storage and focus on building your apps.
- Split a string at one or more indices☆25May 3, 2021Updated 5 years ago
- Convert matching double-quotes to single-quotes: `I "love" unicorns` → `I 'love' unicorns`☆57Feb 2, 2026Updated 5 months ago
- Convert a time string to seconds: '0017' → 1337☆37May 3, 2021Updated 5 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
- Prepend `https://` to humanized URLs like `sindresorhus.com` and `localhost`☆66Sep 9, 2025Updated 9 months ago
- Check if a file path is a binary file☆49Apr 30, 2024Updated 2 years ago
- Compose promise-returning & async functions into a reusable pipeline☆131Apr 8, 2021Updated 5 years ago
- Regular expression for matching reserved filename characters☆52Sep 14, 2025Updated 9 months ago
- Proton VPN Special Offer - Get 70% off • AdSpecial partner offer. Trusted by over 100 million users worldwide. Tested, Approved and Recommended by Experts.
- Convert a Source Map object to a comment☆16Aug 9, 2021Updated 4 years ago
- Find the closest package.json file☆166Jun 5, 2025Updated last year
- Check if a value is a function☆29May 3, 2021Updated 5 years ago
- Get namespaced config from the closest package.json☆120Nov 5, 2023Updated 2 years ago
- Get free disk space info from `df -kP`☆65Sep 13, 2025Updated 9 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 2 years ago
- Get a random key from an object☆18Jul 2, 2024Updated 2 years ago
- GPUs on demand by Runpod - Special Offer Available • AdRun AI, ML, and HPC workloads on powerful cloud GPUs—without limits or wasted spend. Deploy GPUs in under a minute and pay by the second.
- Check if your code is running as an npm or yarn script☆66Sep 10, 2025Updated 9 months ago
- Convert a file path to a file URL: `unicorn.jpg` → `file:///Users/sindresorhus/unicorn.jpg`☆63Apr 1, 2024Updated 2 years ago
- Get the email of an npm user☆14Feb 26, 2024Updated 2 years ago
- Display a notification (macOS 10.9+)☆91Nov 13, 2025Updated 7 months ago
- Convert an absolute path to tilde path: /Users/sindresorhus/dev => ~/dev☆96Jul 8, 2022Updated 3 years ago
- Get an array of valid, sorted, and cleaned semver versions from an array of strings☆41Apr 21, 2021Updated 5 years ago
- Strip shebang (eg. #!/bin/sh) from a string☆11Aug 18, 2021Updated 4 years ago