Ensure a function is only called once
☆166Sep 18, 2026Updated this week
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:
- Strip redundant indentation and indent the string☆55Updated this week
- Get the first path that exists on disk of multiple paths☆64Updated this week
- Similar to String#trim() but removes only whitespace on the right☆22Jul 9, 2021Updated 5 years ago
- Check if a path is a file, directory, or symlink☆81Updated this week
- Check if a file path is a binary file☆49Updated this week
- 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.
- Check if a path is inside another path☆40Updated this week
- Check if a path is the current working directory☆22Updated this week
- Trim newlines from the start and/or end of a string☆49Updated this week
- Get the PATH environment variable key cross-platform☆46Updated this week
- Gracefully restore the CLI cursor on exit☆41Updated this week
- Check if a path is in the current working directory☆23Updated this week
- Check if an Iterable is empty☆23Sep 14, 2025Updated last year
- Check if a number is a redirect HTTP status code☆25Updated this week
- Strip the final newline character from a string/buffer☆37Updated this week
- AI Agents on DigitalOcean Gradient AI Platform • AdBuild production-ready AI agents using customizable tools or access multiple LLMs through a single endpoint. Create custom knowledge bases or connect external data.
- Node.js 0.12 path.isAbsolute() ponyfill☆42Jan 24, 2021Updated 5 years ago
- Make a function mimic another one☆96Updated this week
- Get the user home directory with fallback to the system temp directory☆30Updated this week
- [DEPRECATED] Node.js os.tmpdir() ponyfill☆36Jan 24, 2021Updated 5 years ago
- ES2015 Number.isFinite() ponyfill☆20Apr 7, 2021Updated 5 years ago
- Check if something is a Node.js stream☆115Updated this week
- Regular expression for matching a shebang line☆48Updated this week
- Find mapcodes in a string☆26Jun 17, 2026Updated 3 months ago
- ☆19Dec 21, 2024Updated last year
- Managed hosting for WordPress and PHP on Cloudways • AdManaged hosting for WordPress, Magento, Laravel, or PHP apps, on multiple cloud providers. Deploy in minutes on Cloudways by DigitalOcean.
- Repeat text☆17May 3, 2021Updated 5 years ago
- Repeat a string - fast☆35Updated this week
- Resolve the path of a module like require.resolve() but from a given path☆145Updated this week
- node's assert.deepEqual algorithm except for the fact that (NaN === NaN) and (+0 !== -0).☆21Sep 4, 2021Updated 5 years ago
- Get namespaced config from the closest package.json☆117Updated this week
- Check if the character represented by a given Unicode code point is fullwidth☆51Updated this week
- Decompress a HTTP response if needed☆74Updated this week
- Check if a path exists☆154Updated this week
- Check if a value is a plain object☆105Updated this week
- Bare Metal GPUs on DigitalOcean Gradient AI • AdPurpose-built for serious AI teams training foundational models, running large-scale inference, and pushing the boundaries of what's possible.
- Slice a string with ANSI escape codes☆51Updated this week
- Check if a string matches the name of a Node.js builtin module☆62Updated this week
- Get the first fulfilled promise that satisfies the provided testing function☆82Updated this week
- ☆19Dec 21, 2024Updated last year
- The map of HTTP status codes from the builtin http module☆19Apr 21, 2022Updated 4 years ago
- Pretty time zone: +2 or -9:30☆58Updated this week
- abstract base class for hash-streams☆11Sep 23, 2025Updated last year