sindresorhus / locate-pathView external linksLinks
Get the first path that exists on disk of multiple paths
☆62Sep 15, 2025Updated 4 months ago
Alternatives and similar repositories for locate-path
Users that are interested in locate-path are comparing it to the libraries listed below
Sorting:
- Check if a number is a redirect HTTP status code☆25Apr 17, 2021Updated 4 years ago
- ES2015 Number.isFinite() ponyfill☆20Apr 7, 2021Updated 4 years ago
- Get the PATH environment variable key cross-platform☆46Sep 12, 2025Updated 5 months ago
- Check if a path is inside another path☆40Sep 11, 2025Updated 5 months ago
- Check if a path is in the current working directory☆23May 3, 2021Updated 4 years ago
- Get the first fulfilled promise that satisfies the provided testing function☆77Feb 3, 2026Updated last week
- Check if a path is the current working directory☆22May 10, 2025Updated 9 months ago
- Similar to String#trim() but removes only whitespace on the right☆22Jul 9, 2021Updated 4 years ago
- Check if a file path is a binary file☆49Apr 30, 2024Updated last year
- ES2015 `String#codePointAt()` ponyfill☆23Jan 23, 2021Updated 5 years ago
- Check if the character represented by a given Unicode code point is fullwidth☆51Aug 31, 2025Updated 5 months ago
- Lowercase the keys of an object☆41Feb 2, 2026Updated last week
- Create a noop process and get the PID☆14Aug 10, 2021Updated 4 years ago
- Strip the final newline character from a string/buffer☆38Oct 28, 2024Updated last year
- Start a promise chain☆60Sep 16, 2025Updated 4 months ago
- [DEPRECATED] Node.js os.tmpdir() ponyfill☆37Jan 24, 2021Updated 5 years ago
- Create an object path (dot notation) from a list or array of strings.☆16Dec 31, 2020Updated 5 years ago
- Get the user home directory with fallback to the system temp directory☆30Apr 16, 2021Updated 4 years ago
- Modify the values of an object☆29Sep 10, 2021Updated 4 years ago
- Map `visit` over an array of objects.☆17Jun 27, 2022Updated 3 years ago
- Check if a path is a file, directory, or symlink☆80Feb 2, 2026Updated last week
- Detect the dominant newline character of a string☆56Sep 23, 2023Updated 2 years ago
- ES2015 Number.isNaN() ponyfill☆29May 2, 2024Updated last year
- Regular expression for matching a shebang line☆48Aug 13, 2021Updated 4 years ago
- `Promise#finally()` ponyfill - Invoked when the promise is settled regardless of outcome☆47Apr 9, 2021Updated 4 years ago
- Node.js 0.12 path.isAbsolute() ponyfill☆43Jan 24, 2021Updated 5 years ago
- Gracefully restore the CLI cursor on exit☆41Jul 26, 2024Updated last year
- Transform the first chunk in a stream☆28Nov 1, 2023Updated 2 years ago
- Check if something is a Node.js stream☆115Oct 28, 2024Updated last year
- Get your PATH prepended with locally installed binaries☆107Oct 28, 2024Updated last year
- Visit a method over the items in an object, or map visit over the objects in an array. This is an alternative approach to using extend or…☆20Dec 15, 2020Updated 5 years ago
- Copy static properties, prototype properties, and descriptors from one object to another☆15Dec 16, 2020Updated 5 years ago
- Get the version of a binary in semver format☆42Apr 3, 2024Updated last year
- Invert the key/value of an object. Example: {foo: 'bar'} → {bar: 'foo'}☆37Feb 26, 2022Updated 3 years ago
- A cache for managing namespaced sub-caches☆14Sep 4, 2021Updated 4 years ago
- Faster, bash-like range expansion. Expand a range of numbers or letters, uppercase or lowercase. See the benchmarks.☆25Nov 26, 2018Updated 7 years ago
- Mapping between standard locale identifiers and Windows locale identifiers (LCID)☆39Apr 30, 2024Updated last year
- Prepend `https://` to humanized URLs like `sindresorhus.com` and `localhost`☆66Sep 9, 2025Updated 5 months ago
- Check if a value is a regular expression☆26Oct 31, 2021Updated 4 years ago