Amazon Vinyl logo Amazon Vinyl v3.2.1

@amazon/vinyl-util

Website npm size

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-util

Documentation

  • Events — typed observer pattern (EventHost, DomEventHost), once-listeners, redispatch, cleanup.
  • Globals — overriding global references for testability and resource management.
  • NetworkingrequesterWithRetryRef, retry policy, backoff control flow, network metrics.

Browse all docs and the TypeDoc API reference at amazonmusic.github.io/vinyl.

License

Apache-2.0