Parse yes/no like values
☆273Aug 22, 2025Updated 6 months ago
Alternatives and similar repositories for yn
Users that are interested in yn are comparing it to the libraries listed below
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 5 months ago
- Truncate a semver version: 1.2.3 → 1.2.0☆18Jul 9, 2022Updated 3 years ago
- Toggle the CLI cursor☆113Jul 26, 2024Updated last year
- Pretty time zone: +2 or -9:30☆58Jul 9, 2022Updated 3 years ago
- Get the passwd user entry from a username or uid☆30Jul 9, 2022Updated 3 years ago
- Modify the values of an object☆29Sep 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
- Pretty UTC datetime: `2014-01-09 0601`☆32Jul 8, 2022Updated 3 years ago
- Copy a file☆123Aug 13, 2025Updated 6 months ago
- Parse/stringify contact info like `Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)`☆37Aug 9, 2021Updated 4 years ago
- Parse milliseconds into an object☆124May 4, 2024Updated last year
- Detect the dominant newline character of a string☆56Sep 23, 2023Updated 2 years ago
- Make unhandled promise rejections fail loudly instead of the default silent fail☆282Jan 24, 2021Updated 5 years ago
- Alphabetically sort an array of strings☆40Apr 9, 2021Updated 4 years ago
- Get the hash of a string☆68Feb 5, 2022Updated 4 years ago
- Get the version numbers of a package from the npm registry☆31Feb 26, 2024Updated 2 years ago
- Check if a path exists☆155Mar 3, 2022Updated 4 years ago
- Split a string on the first occurrence of a given separator☆75Aug 20, 2025Updated 6 months ago
- Expands symbolic links and prints the resolved absolute filepath☆27May 6, 2024Updated last year
- Convert an absolute path to tilde path: /Users/sindresorhus/dev => ~/dev☆96Jul 8, 2022Updated 3 years ago
- Truncate a string to a specific width in the terminal☆88Updated this week
- Open files in your editor at a specific line and column☆211Nov 23, 2025Updated 3 months ago
- Find semver versions in a string: `unicorn v1.2.3` → `1.2.3`☆46Apr 3, 2024Updated last year
- Find the root directory of a Node.js project or npm package☆251Feb 1, 2026Updated last month
- Gracefully restore the CLI cursor on exit☆41Jul 26, 2024Updated last year
- Make unhandled promise rejections fail hard right away instead of the default silent fail☆107Jul 8, 2022Updated 3 years ago
- Copy files☆434Feb 12, 2026Updated 2 weeks ago
- Strip shebang (eg. #!/bin/sh) from a string☆11Aug 18, 2021Updated 4 years ago
- Find a file or directory by walking up parent directories☆634Sep 16, 2025Updated 5 months ago
- Get consecutively unique elements from an array☆77May 18, 2024Updated last year
- Get the first path that exists on disk of multiple paths☆63Sep 15, 2025Updated 5 months ago
- Check if a value is a Blob☆24Oct 27, 2023Updated 2 years ago
- ES2015 Number.isSafeInteger() ponyfill☆19Jan 23, 2021Updated 5 years ago
- Lowercase the keys of an object☆41Feb 2, 2026Updated last month
- Round a number to a specific number of decimal places: 1.234 → 1.2☆159Sep 17, 2025Updated 5 months ago
- Exit the process when the `esc` key is pressed☆58Dec 4, 2023Updated 2 years ago
- Check whether a package or organization name is available on npm☆173Feb 2, 2026Updated last month
- Get an unused filename by appending a number if it exists: `file.txt` → `file (1).txt`☆144Sep 11, 2025Updated 5 months ago