Skip to content
JS
Package

once

Run a function exactly one time

v1.4.0, 6 Sept 2016ISCCommonJSTypes: None
$ npm install once

Key numbers

As of 25 Sept 2026
Weekly downloads
119m
+83% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
1
Direct, from package.json
Last release
10 years ago
v1.4.0
GitHub stars
222
27 forks
Open issues / PRs
2 / 2
Contributors
7
Commits, last 52 weeks
1

Downloads

Last week 2026-09-15 to 2026-09-21
050m100m150m200mSept 2025Mar 2026Sept 2026High 157.1m (25 Aug 2026)Low 43m (23 Dec 2025)
Weekly npm downloads, one point per week, weeks starting 23 Sept 2025 to 15 Sept 2026. The y axis starts at zero.

119,026,637 downloads last week, 524,885,578 in the last month. The 12-month change of +83% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
07 in total
Latest version
1.4.0, 6 Sept 201610 years ago
First published
14 Aug 2012
Last push to GitHub
25 Oct 2025334 days before the snapshot
Repository archived
No
Open issues
2
Open pull requests
2
Commits, last 52 weeks
1
Dependents on npm
3,703

Major versions

  1. v1 first release 1.1.1, 14 Aug 2012

Recent releases

VersionPublished
1.4.06 Sept 2016
1.3.320 Nov 2015
1.3.24 May 2015
1.3.118 Sept 2014
1.3.024 Oct 2013
1.2.012 Aug 2013
1.1.114 Aug 2012
Module format
CommonJSFrom package.json type, main and exports fields
TypeScript types
None
Node.js engine range
Not declared
Runtimes
-
Unpacked size (npm)
-
Dependencies (1)
wrappy
npm install once
  • jsDelivrhttps://cdn.jsdelivr.net/npm/once@1.4.0/
  • unpkghttps://unpkg.com/once@1.4.0/
  • esm.shhttps://esm.sh/once@1.4.0
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

Indexability: Not indexed (discovery only): no category.