Ensure a function is only called once
☆166Sep 18, 2026Updated last month
Alternatives and similar repositories for onetime
Users that are interested in onetime are comparing it to the libraries listed below. We may earn a commission when you buy through links labeled 'Ad' on this page.
Sorting:
- DES for browserify☆10Dec 21, 2024Updated last year
- Gracefully restore the CLI cursor on exit☆42Sep 18, 2026Updated last month
- Strip redundant indentation and indent the string☆56Sep 18, 2026Updated last month
- Get the first path that exists on disk of multiple paths☆64Sep 18, 2026Updated last month
- Check if a path is the current working directory☆22Sep 18, 2026Updated last month
- Managed Database hosting by DigitalOcean • AdPostgreSQL, MySQL, MongoDB, Kafka, Valkey, and OpenSearch available. Automatically scale up storage and focus on building your apps.
- Similar to String#trim() but removes only whitespace on the right☆22Jul 9, 2021Updated 5 years ago
- ES2015 Number.isFinite() ponyfill☆20Apr 7, 2021Updated 5 years ago
- Check if a path is a file, directory, or symlink☆81Sep 18, 2026Updated last month
- Check if a path is in the current working directory☆23Sep 18, 2026Updated last month
- [DEPRECATED] Node.js os.tmpdir() ponyfill☆37Jan 24, 2021Updated 5 years ago
- Check if a path is inside another path☆40Sep 18, 2026Updated last month
- Returns `true` if a file path appears to be relative. Moved from the "relative" lib.☆14May 6, 2018Updated 8 years ago
- Check if a file path is a binary file☆49Sep 18, 2026Updated last month
- Check if a number is a redirect HTTP status code☆25Sep 18, 2026Updated last month
- 1-Click AI Models by DigitalOcean Gradient • AdDeploy popular AI models on DigitalOcean Gradient GPU virtual machines with just a single click. Zero configuration with optimized deployments.
- Node.js 0.12 path.isAbsolute() ponyfill☆43Jan 24, 2021Updated 5 years ago
- Regular expression for matching a shebang line☆48Sep 18, 2026Updated last month
- Strip the final newline character from a string/buffer☆38Sep 18, 2026Updated last month
- Get the PATH environment variable key cross-platform☆46Sep 18, 2026Updated last month
- ☆19Dec 21, 2024Updated last year
- ES2015 `String#codePointAt()` ponyfill☆23Jan 23, 2021Updated 5 years ago
- Trim newlines from the start and/or end of a string☆49Sep 18, 2026Updated last month
- Create Error classes☆41Nov 27, 2018Updated 7 years ago
- Get the user home directory with fallback to the system temp directory☆30Sep 18, 2026Updated last month
- Managed Database hosting by DigitalOcean • AdPostgreSQL, MySQL, MongoDB, Kafka, Valkey, and OpenSearch available. Automatically scale up storage and focus on building your apps.
- Get an ArrayBuffer from a Buffer as fast as possible☆20Jul 9, 2021Updated 5 years ago
- Reduce function calls in a string, using a callback☆12Oct 19, 2026Updated 2 weeks ago
- node's assert.deepEqual algorithm except for the fact that (NaN === NaN) and (+0 !== -0).☆21Sep 4, 2021Updated 5 years ago
- ☆19Dec 21, 2024Updated last year
- The map of HTTP status codes from the builtin http module☆19Apr 21, 2022Updated 4 years ago
- Check if something is a Node.js stream☆116Sep 18, 2026Updated last month
- Repeat a string - fast☆35Sep 18, 2026Updated last month
- ☆20Oct 19, 2026Updated 2 weeks ago
- PostCSS helpers to throw or output GNU style messages☆10Jul 2, 2024Updated 2 years ago
- Managed Database hosting by DigitalOcean • AdPostgreSQL, MySQL, MongoDB, Kafka, Valkey, and OpenSearch available. Automatically scale up storage and focus on building your apps.
- Toggle the CLI cursor☆115Sep 18, 2026Updated last month
- Check if the character represented by a given Unicode code point is fullwidth☆51Sep 18, 2026Updated last month
- Check if a given module ID is resolvable with require()☆16Nov 30, 2018Updated 7 years ago
- Returns true if a string has an extglob☆23May 25, 2019Updated 7 years ago
- Make a function mimic another one☆97Sep 18, 2026Updated last month
- Resolve the path of a module like require.resolve() but from a given path☆145Sep 18, 2026Updated last month
- Utility method to run function either synchronously or asynchronously using the common `this.async()` style.☆24Aug 8, 2025Updated last year