Ensure a function is only called once
☆165Feb 2, 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:
- Strip redundant indentation and indent the string☆55May 3, 2021Updated 4 years ago
- Get the first path that exists on disk of multiple paths☆64Sep 15, 2025Updated 6 months ago
- Check if a path is in the current working directory☆23May 3, 2021Updated 4 years ago
- Similar to String#trim() but removes only whitespace on the right☆22Jul 9, 2021Updated 4 years ago
- Check if a path is a file, directory, or symlink☆80Feb 2, 2026Updated 2 months ago
- Wordpress hosting with auto-scaling - Free Trial • AdFully Managed hosting for WordPress and WooCommerce businesses that need reliable, auto-scalable performance. Cloudways SafeUpdates now available.
- Check if a file path is a binary file☆49Apr 30, 2024Updated last year
- Trim newlines from the start and/or end of a string☆49Mar 20, 2023Updated 3 years ago
- Get the PATH environment variable key cross-platform☆46Sep 12, 2025Updated 7 months ago
- Check if a path is inside another path☆40Sep 11, 2025Updated 7 months ago
- Check if a path is the current working directory☆22May 10, 2025Updated 11 months ago
- Gracefully restore the CLI cursor on exit☆41Jul 26, 2024Updated last year
- Check if an Iterable is empty☆23Sep 14, 2025Updated 7 months ago
- Check if a number is a redirect HTTP status code☆25Apr 17, 2021Updated 4 years ago
- Check if something is a Node.js stream☆115Oct 28, 2024Updated last year
- Virtual machines for every use case on DigitalOcean • AdGet dependable uptime with 99.99% SLA, simple security tools, and predictable monthly pricing with DigitalOcean's virtual machines, called Droplets.
- Make a function mimic another one☆96Oct 28, 2024Updated last year
- Strip the final newline character from a string/buffer☆38Oct 28, 2024Updated last year
- Node.js 0.12 path.isAbsolute() ponyfill☆43Jan 24, 2021Updated 5 years ago
- [DEPRECATED] Node.js os.tmpdir() ponyfill☆37Jan 24, 2021Updated 5 years ago
- ES2015 Number.isFinite() ponyfill☆20Apr 7, 2021Updated 5 years ago
- Pretty time zone: +2 or -9:30☆58Jul 9, 2022Updated 3 years ago
- Get the user home directory with fallback to the system temp directory☆30Apr 16, 2021Updated 4 years ago
- Find mapcodes in a string☆26Jul 24, 2022Updated 3 years ago
- Get namespaced config from the closest package.json☆120Nov 5, 2023Updated 2 years ago
- 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.
- Regular expression for matching a shebang line☆48Aug 13, 2021Updated 4 years ago
- Repeat text☆17May 3, 2021Updated 4 years ago
- ☆19Dec 21, 2024Updated last year
- Resolve the path of a module like require.resolve() but from a given path☆145Jan 23, 2021Updated 5 years ago
- Check if a value is a plain object☆104May 4, 2024Updated last year
- Get the first fulfilled promise that satisfies the provided testing function☆78Feb 3, 2026Updated 2 months ago
- Check if the character represented by a given Unicode code point is fullwidth☆51Aug 31, 2025Updated 7 months ago
- Repeat a string - fast☆35May 3, 2021Updated 4 years ago
- Simple `setImmediate` shim☆29Sep 13, 2025Updated 7 months ago
- Virtual machines for every use case on DigitalOcean • AdGet dependable uptime with 99.99% SLA, simple security tools, and predictable monthly pricing with DigitalOcean's virtual machines, called Droplets.
- node's assert.deepEqual algorithm except for the fact that (NaN === NaN) and (+0 !== -0).☆21Sep 4, 2021Updated 4 years ago
- Check if a path exists☆155Mar 3, 2022Updated 4 years ago
- Transform the first chunk in a stream☆28Nov 1, 2023Updated 2 years ago
- Decompress a HTTP response if needed☆75Oct 13, 2025Updated 6 months ago
- Indent each line in a string☆116Jun 5, 2022Updated 3 years ago
- Slice a string with ANSI escape codes☆51Apr 4, 2026Updated last week
- ☆19Dec 21, 2024Updated last year