</>PackageGraphPackageGraph

once

npmv1.4.0

Run a function exactly one time

127.6M
Weekly downloads
1
Dependents
2
Dependencies
100/100
Popularity

Overview

once is an npm package that run a function exactly one time. It is extremely widely used, with about 127.6M downloads per week and 1 known dependents in the graph. The latest version is 1.4.0, released under the ISC license.

Who should use it

Teams working in the npm ecosystem who need run a function exactly one time and value a battle-tested, widely-adopted solution.

When not to use it

Consider an alternative if you need to have first-class TypeScript types out of the box, or if a more actively-maintained option better fits your npm stack.

Pros

  • Large, well-established user base (127.6M weekly downloads).
  • Clear open-source license (ISC).
  • Lean dependency tree (2 direct dependencies).

Cons

  • No bundled TypeScript types (may require a separate @types package).

Auto-generated from collected registry metadata. No external claims are inferred.

Relationship graph

Dependencies (left) and dependents (right) of once.

wrappyexpressonce
once dependencies dependents

Dependencies

Runtime (1)

Dev (1)

tap ^7.0.1

Used by

Popular packages that depend on once.

Alternatives to once

Frequently installed together

Version history

VersionPublishedLicense
1.4.0latest10 years agoISC
1.3.310 years agoISC
1.3.211 years agoISC
1.3.112 years agoBSD
1.3.012 years agoBSD
1.2.013 years agoBSD
1.1.114 years agoBSD

Maintainers

Keywords

Frequently asked questions

How do I install once?

Run `npm install once` to add once to your npm project.

What license is once released under?

once is distributed under the ISC license.

How popular is once?

once has approximately 127,577,857 downloads per week and 1 known dependent packages.