Skip to content

@welshman/lib ​

version

A TypeScript utility library that the other welshman packages build on.

What's Included ​

  • Utility Functions - Helpers for arrays, objects, strings, and more
  • Deferred Promises - Create promises with exposed resolve/reject methods
  • LRU Cache - A size-bounded cache that evicts the least recently used entry
  • Event Emitter - An EventEmitter that also emits every event to '*' listeners
  • URL Normalization - A utility function for normalizing URLs
  • Task Queue - Process tasks asynchronously in delayed batches

Installation ​

bash
npm install @welshman/lib