GitShow/sindresorhus/onetime
sindresorhus

onetime

Ensure a function is only called once

by sindresorhus
Star on GitHubForknpm

JavaScript

167 stars15 forks9 contributorsQuiet · 5mo agoSince 2013v8.0.0MIT

Meet the team

See all 9 on GitHub →
sindresorhus
sindresorhus39 contributions
kevva
kevva3 contributions
BendingBender
BendingBender2 contributions
coreyfarrell
coreyfarrell1 contribution
fregante
fregante1 contribution
Richienb
Richienb1 contribution
SamVerschueren
SamVerschueren1 contribution
yuler
yuler1 contribution

Languages

View on GitHub →
JavaScript79.7%
TypeScript20.3%

Commit activity

Last 12 weeks · 0 commits

Full graph →

Community health

4 of 6 standards met

Community profile →
85
✓README✓License✓Contributing✓Code of Conduct○Issue Template○PR Template

Recent fixes

View closed PRs →
fregante
Improve types to avoid the runtime error in `onetime.callCount()`ClosedIssue

I think can return or a Function that extends both the argument and a private type.

fregante · 5mo ago
yuler
Use undefined instead of nullMergedPR

I saw you say Intent to stop using in my JS code #7

yuler · 5y ago
Richienb
Move to GitHub ActionsMergedPR
Richienb · 5y ago
Structured data for AI agents

Repository: sindresorhus/onetime. Description: Ensure a function is only called once Stars: 167, Forks: 15. Primary language: JavaScript. Languages: JavaScript (79.7%), TypeScript (20.3%). License: MIT. Latest release: v8.0.0 (5mo ago). Open PRs: 0, open issues: 0. Last activity: 5mo ago. Community health: 85%. Top contributors: sindresorhus, kevva, BendingBender, coreyfarrell, fregante, Richienb, SamVerschueren, yuler, chocolateboy.

·@ofershap

Replace github.com with gitshow.dev