sindresorhus / p-locateView external linksLinks
Get the first fulfilled promise that satisfies the provided testing function
☆77Feb 3, 2026Updated last week
Alternatives and similar repositories for p-locate
Users that are interested in p-locate are comparing it to the libraries listed below
Sorting:
- Get the first path that exists on disk of multiple paths☆62Sep 15, 2025Updated 5 months ago
- ES2015 Number.isFinite() ponyfill☆20Apr 7, 2021Updated 4 years ago
- Check if a file path is a binary file☆49Apr 30, 2024Updated last year
- Check if the character represented by a given Unicode code point is fullwidth☆51Aug 31, 2025Updated 5 months ago
- `Promise#finally()` ponyfill - Invoked when the promise is settled regardless of outcome☆47Apr 9, 2021Updated 4 years ago
- Similar to String#trim() but removes only whitespace on the right☆22Jul 9, 2021Updated 4 years ago
- Get the PATH environment variable key cross-platform☆46Sep 12, 2025Updated 5 months ago
- Strip the final newline character from a string/buffer☆38Oct 28, 2024Updated last year
- Run promise-returning & async functions a specific number of times concurrently☆41Oct 4, 2021Updated 4 years ago
- Start a promise chain☆60Sep 16, 2025Updated 5 months ago
- ES2015 `String#codePointAt()` ponyfill☆23Jan 23, 2021Updated 5 years ago
- Check if a path is in the current working directory☆23May 3, 2021Updated 4 years ago
- Check if a number is a redirect HTTP status code☆25Apr 17, 2021Updated 4 years ago
- Run promise-returning & async functions in series, each passing its result to the next☆78Sep 11, 2025Updated 5 months ago
- Make a function mimic another one☆96Oct 28, 2024Updated last year
- [DEPRECATED] Node.js os.tmpdir() ponyfill☆37Jan 24, 2021Updated 5 years ago
- ES2015 Number.isNaN() ponyfill☆29May 2, 2024Updated last year
- Break out of a promise chain☆24Apr 7, 2021Updated 4 years ago
- Node.js 0.12 path.isAbsolute() ponyfill☆43Jan 24, 2021Updated 5 years ago
- Transform the first chunk in a stream☆28Nov 1, 2023Updated 2 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
- A cache for managing namespaced sub-caches☆14Sep 4, 2021Updated 4 years ago
- Utilities for the snapdragon parser/compiler.☆18Aug 12, 2020Updated 5 years ago
- Check if something is a promise☆45Apr 16, 2021Updated 4 years ago
- Wait for a specified number of promises to be fulfilled☆39Sep 11, 2025Updated 5 months ago
- abstract base class for hash-streams☆11Sep 23, 2025Updated 4 months ago
- Return true if the file is (or the file path has) a dotfile.☆14May 30, 2017Updated 8 years ago
- Returns true if a value has the characteristics of a valid JavaScript accessor descriptor.☆15Dec 30, 2025Updated last month
- Create an object path (dot notation) from a list or array of strings.☆16Dec 31, 2020Updated 5 years ago
- Regular expression for matching a shebang line☆48Aug 13, 2021Updated 4 years ago
- List of binary file extensions☆89May 4, 2025Updated 9 months ago
- Gracefully restore the CLI cursor on exit☆41Jul 26, 2024Updated last year
- Extended globs. Add (almost) the expressive power of regular expressions to glob patterns.☆32Nov 25, 2020Updated 5 years ago
- Check if a path is the current working directory☆22May 10, 2025Updated 9 months ago
- Check if a path is a file, directory, or symlink☆80Feb 2, 2026Updated last week
- Get the command from a shebang☆24Aug 14, 2021Updated 4 years ago
- Assign the enumerable es6 Symbol properties from an object (or objects) to the first object passed on the arguments. Can be used as a sup…☆18Sep 14, 2018Updated 7 years ago
- Map `visit` over an array of objects.☆17Jun 27, 2022Updated 3 years ago
- Reduce a list of values using promises into a promise for a value☆74Feb 11, 2023Updated 3 years ago