Ensure a function is only called once
☆166Sep 18, 2026Updated 2 months ago
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☆43Sep 18, 2026Updated 2 months ago
- Strip redundant indentation and indent the string☆56Sep 18, 2026Updated 2 months ago
- Get the first path that exists on disk of multiple paths☆65Sep 18, 2026Updated 2 months ago
- Similar to String#trim() but removes only whitespace on the right☆22Jul 9, 2021Updated 5 years ago
- Deploy on Railway without the complexity - Free Credits Offer • AdConnect your repo and Railway handles the rest with instant previews. Quickly provision container image services, databases, and storage volumes.
- ES2015 Number.isFinite() ponyfill☆20Apr 7, 2021Updated 5 years ago
- Check if a path is the current working directory☆23Sep 18, 2026Updated 2 months ago
- Check if a path is in the current working directory☆23Sep 18, 2026Updated 2 months ago
- [DEPRECATED] Node.js os.tmpdir() ponyfill☆37Jan 24, 2021Updated 5 years ago
- Check if a path is a file, directory, or symlink☆82Sep 18, 2026Updated 2 months ago
- Returns `true` if a file path appears to be relative. Moved from the "relative" lib.☆14May 6, 2018Updated 8 years ago
- Check if a path is inside another path☆41Sep 18, 2026Updated 2 months ago
- Check if a number is a redirect HTTP status code☆25Sep 18, 2026Updated 2 months ago
- Check if a file path is a binary file☆50Sep 18, 2026Updated 2 months ago
- Deploy open-source AI quickly and easily - Special Bonus Offer • AdRunpod Hub is built for open source. One-click deployment and autoscaling endpoints without provisioning your own infrastructure.
- Node.js 0.12 path.isAbsolute() ponyfill☆43Jan 24, 2021Updated 5 years ago
- ES2015 `String#codePointAt()` ponyfill☆23Jan 23, 2021Updated 5 years ago
- Regular expression for matching a shebang line☆48Sep 18, 2026Updated 2 months ago
- Get the PATH environment variable key cross-platform☆46Sep 18, 2026Updated 2 months ago
- Strip the final newline character from a string/buffer☆39Sep 18, 2026Updated 2 months ago
- ☆19Dec 21, 2024Updated last year
- Create Error classes☆41Nov 27, 2018Updated 7 years ago
- Get the user home directory with fallback to the system temp directory☆30Sep 18, 2026Updated 2 months ago
- Reduce function calls in a string, using a callback☆12Oct 19, 2026Updated last month
- Deploy to Railway using AI coding agents - Free Credits Offer • AdUse Claude Code, Codex, OpenCode, and more. Autonomous software development now has the infrastructure to match with Railway.
- Trim newlines from the start and/or end of a string☆49Sep 18, 2026Updated 2 months 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
- ☆20Oct 19, 2026Updated last month
- Repeat a string - fast☆35Sep 18, 2026Updated 2 months ago
- Check if something is a Node.js stream☆117Sep 18, 2026Updated 2 months ago
- PostCSS helpers to throw or output GNU style messages☆10Jul 2, 2024Updated 2 years ago
- Check if the character represented by a given Unicode code point is fullwidth☆51Sep 18, 2026Updated 2 months ago
- Wordpress hosting with auto-scaling - Free Trial Offer • AdFully Managed hosting for WordPress and WooCommerce businesses that need reliable, auto-scalable performance. Cloudways SafeUpdates now available.
- Get an ArrayBuffer from a Buffer as fast as possible☆20Jul 9, 2021Updated 5 years ago
- Toggle the CLI cursor☆117Sep 18, 2026Updated 2 months ago
- Check if a given module ID is resolvable with require()☆16Nov 30, 2018Updated 7 years ago
- Make a function mimic another one☆98Sep 18, 2026Updated 2 months ago
- Resolve the path of a module like require.resolve() but from a given path☆146Sep 18, 2026Updated 2 months ago
- Returns true if a string has an extglob☆24May 25, 2019Updated 7 years ago
- Strip a substring from the start/end of a string☆23Sep 18, 2026Updated 2 months ago
Are these results useful?