Search results

1000+ packages found

Ensure a function is only called once

published version 7.0.0, a year ago2131 dependents licensed under $MIT
326,581,510

Run a function exactly one time

published version 1.4.0, 9 years ago3724 dependents licensed under $ISC
243,531,390

EventEmitter3 focuses on performance while maintaining a Node.js AND browser compatible interface.

published version 5.0.1, 2 years ago6675 dependents licensed under $MIT
174,385,444

Simple and modern async event emitter

published version 1.1.0, 2 months ago1270 dependents licensed under $MIT
120,126,490

The lodash method `_.once` exported as a module.

published version 4.1.1, 9 years ago235 dependents licensed under $MIT
79,904,925

Run the supplied function exactly one time (once)

published version 1.0.0, 6 years ago86 dependents licensed under $MIT
44,487,647

A small utility for creating warnings and emitting them.

published version 5.0.0, 22 days ago204 dependents licensed under $MIT
45,661,378

A feature-rich Node.js event emitter implementation with namespaces, wildcards, TTL, async listeners and browser/worker support.

published version 6.4.9, 3 years ago2016 dependents licensed under $MIT
53,938,419

Split a string on the first occurance of a given separator

published version 3.0.0, 4 years ago143 dependents licensed under $MIT
29,371,125

mixin to add one-time ready event callback handler

published version 3.4.0, 3 months ago52 dependents licensed under $MIT
984,764

async oncehelper method as module.

published version 0.5.2, 9 years ago6 dependents licensed under $MIT
828,838

A lean Promises and Async lib for ES6/ES7

published version 0.9.2, 2 years ago39 dependents licensed under $MIT
583,320

Simple API for managing options in JavaScript applications.

published version 4.0.0, 8 years ago5 dependents licensed under $MIT
134,224

Ensure a function is only called once. This is a fork of sindresorhus/onetime, but with CommonJS support.

published version 6.0.1-cjs.0, 3 years ago1 dependents licensed under $MIT
70,408

Stashes callbacks for later execution

published version 2.0.1, 3 years ago1 dependents licensed under $ISC
82,893

create a function that can only be invoked once

published version 2.2.0, 2 years ago9 dependents licensed under $MIT
40,766

Listen to one event via `addEventListener`, then resolve a Promise

published version 4.3.0, 7 months ago5 dependents licensed under $MIT
22,903

Observe one mutation via `MutationObserver`, then resolve a Promise.

published version 3.0.1, 6 months ago1 dependents licensed under $MIT
22,584

Wraps a function so that it's only ever executed once.

published version 3.0.1, 2 months ago7 dependents licensed under $MIT
22,525

Calls a callback only once

published version 1.0.15, 2 months ago5 dependents licensed under $MIT
13,965