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 5 months ago
- Get the version of a binary in semver format☆43Apr 3, 2024Updated 2 years ago
- End-to-end encrypted email - Proton Mail • AdSpecial offer: 40% Off Yearly / 80% Off First Month. All Proton services are open source and independently audited for security.
- 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 3 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 7 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 5 months ago
- Deploy on Railway without the complexity - Free Credits Offer • AdConnect your repo and Railway handles the rest with instant previews. Quickly provision container image services, databases, and storage volumes.
- 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 3 months ago
- 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
- Prepend `https://` to humanized URLs like `sindresorhus.com` and `localhost`☆66Sep 9, 2025Updated 7 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☆53Sep 14, 2025Updated 7 months ago
- Bare Metal GPUs on DigitalOcean Gradient AI • AdPurpose-built for serious AI teams training foundational models, running large-scale inference, and pushing the boundaries of what's possible.
- Convert a Source Map object to a comment☆16Aug 9, 2021Updated 4 years ago
- Find the closest package.json file☆166Jun 5, 2025Updated 10 months ago
- 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 7 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
- Deploy to Railway using AI coding agents - Free Credits Offer • AdUse Claude Code, Codex, OpenCode, and more. Autonomous software development now has the infrastructure to match with Railway.
- Check if your code is running as an npm or yarn script☆66Sep 10, 2025Updated 7 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 5 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