Alexandro.Net maintained compatibility
@stackline/once
ES5 one-shot function wrappers with strict mode, observable state, safe callback decorations, and the documented prototype initializer restored.
npm install @stackline/once@1.0.0
npm install once@npm:@stackline/once@1.0.0
Small and exact
One CommonJS implementation, zero runtime dependencies, an exact Node.js 0.10.48-to-current matrix, browser bundling, and TypeScript 3.9/current declarations.
Bounded corrections
The signed upstream v1.4.1 proto fix is present. Input called, value, and onceError decorations cannot suppress the first invocation.
Global API stays opt-in
once.proto() retains the historical descriptors but mutates Function.prototype. Prefer direct wrappers in libraries.
Independent Stackline continuation; not affiliated with or endorsed by Isaac Z. Schlueter, npm, or the upstream project.