@amazon/vinyl-util
v1.1.1
Published
Standard utilities for browser and node.
Readme
@amazon/vinyl-util
Standard utilities shared across Amazon Vinyl packages: a typed event-host abstraction, a global registry for swappable references, a Fetch wrapper with retry/backoff and metrics, and a small grab-bag of disposers, validation errors, and async helpers. Works in browser and Node, zero runtime dependencies.
Install
npm install @amazon/vinyl-utilDocumentation
- Events — typed observer pattern (
EventHost,DomEventHost), once-listeners, redispatch, cleanup. - Globals — overriding global references for testability and resource management.
- Networking —
requesterWithRetryRef, retry policy, backoff control flow, network metrics.
Browse all docs and the TypeDoc API reference at amazonmusic.github.io/vinyl.
License
Apache-2.0
