Ensure a function is only called once. This is a fork of sindresorhus/onetime, but with CommonJS support.
CJS version: Ensure a function is only called once
:tropical_drink: EventEmitter done right and no dependencies. For nodejs and the browser (>= IE8). Can emit custom or DOM events.
Low-level package to handle completion and errors of sync or asynchronous functions, using [once][] and [dezalgo][] libs. Useful for and used in higher-level libs such as [always-done][] to handle completion of anything.