Parse yes/no like values
☆274Aug 22, 2025Updated 7 months ago
Alternatives and similar repositories for yn
Users that are interested in yn are comparing it to the libraries listed below. We may earn a commission when you buy through links labeled 'Ad' on this page.
Sorting:
- Prepend `https://` to humanized URLs like `sindresorhus.com` and `file://` to file paths☆25Jul 9, 2022Updated 3 years ago
- Check if it's the first time the process is run☆83Sep 12, 2025Updated 6 months ago
- Truncate a semver version: 1.2.3 → 1.2.0☆18Jul 9, 2022Updated 3 years ago
- Toggle the CLI cursor☆112Jul 26, 2024Updated last year
- Pretty UTC datetime: `2014-01-09 0601`☆32Jul 8, 2022Updated 3 years ago
- Parse/stringify contact info like `Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)`☆37Aug 9, 2021Updated 4 years ago
- Pretty time zone: +2 or -9:30☆58Jul 9, 2022Updated 3 years ago
- Modify the values of an object☆28Sep 10, 2021Updated 4 years ago
- Reverse minimist. Convert an object of options into an array of command-line arguments☆187Feb 19, 2023Updated 3 years ago
- Detect the dominant newline character of a string☆56Sep 23, 2023Updated 2 years ago
- Convert matching double-quotes to single-quotes: `I "love" unicorns` → `I 'love' unicorns`☆57Feb 2, 2026Updated last month
- Copy a file☆123Aug 13, 2025Updated 7 months ago
- Get the passwd user entry from a username or uid☆30Jul 9, 2022Updated 3 years ago
- Get the first path that exists on disk of multiple paths☆63Sep 15, 2025Updated 6 months ago
- Gracefully restore the CLI cursor on exit☆41Jul 26, 2024Updated last year
- Split a string at one or more indices☆25May 3, 2021Updated 4 years ago
- Parse milliseconds into an object☆124May 4, 2024Updated last year
- IRC + Hypercore Standup bot☆13Jul 11, 2017Updated 8 years ago
- Check if a path exists☆155Mar 3, 2022Updated 4 years ago
- Convert an absolute path to tilde path: /Users/sindresorhus/dev => ~/dev☆96Jul 8, 2022Updated 3 years ago
- Expands symbolic links and prints the resolved absolute filepath☆27May 6, 2024Updated last year
- Find the root directory of a Node.js project or npm package☆252Feb 1, 2026Updated last month
- Strip shebang (eg. #!/bin/sh) from a string☆11Aug 18, 2021Updated 4 years ago
- Get the first fulfilled promise that satisfies the provided testing function☆78Feb 3, 2026Updated last month
- Find a file or directory by walking up parent directories☆635Sep 16, 2025Updated 6 months ago
- Split a string on the first occurrence of a given separator☆74Aug 20, 2025Updated 7 months ago
- Check whether a package or organization name is available on npm☆173Feb 2, 2026Updated last month
- Copy files☆433Feb 12, 2026Updated last month
- Check if a path is a file, directory, or symlink☆80Feb 2, 2026Updated last month
- Lowercase the keys of an object☆41Feb 2, 2026Updated last month
- Get the version numbers of a package from the npm registry☆31Feb 26, 2024Updated 2 years ago
- Get the hash of a string☆68Feb 5, 2022Updated 4 years ago
- Create an array of unique values, in order, from the input arrays☆78Mar 1, 2021Updated 5 years ago
- Get free disk space info from `df -kP`☆64Sep 13, 2025Updated 6 months ago
- Create an array without duplicates☆74May 3, 2021Updated 4 years ago
- Round a number to a specific number of decimal places: 1.234 → 1.2☆159Sep 17, 2025Updated 6 months ago
- Get the resolved path to the root of a package installed in node_modules☆11Jan 18, 2024Updated 2 years ago
- Delay execution for a given amount of seconds☆85Nov 2, 2025Updated 4 months ago
- Truncate a string to a specific width in the terminal☆88Mar 1, 2026Updated 3 weeks ago