UtilitiesStoresGetting started

Getting started

This package is an easy-to-use utility for managing global and named key-value stores with support for listeners.

Installation

npm install @aezen/stores

Features

  • Written with TypeScript and ES Module.
  • Easy to use and understand.
  • Lightweight and easy-to-use.
  • Support for setting, getting, and deleting values by key.
  • Add listeners to keys to get notified of value changes. You can also remove listeners when they are no longer needed.
  • Create multiple named stores using the NamedStores class.
  • Suitable for various use cases where key-value storage is needed.
  • Easily extend and integrate with other parts of your application.

Prerequisites

Knowledge

You must know how to use JavaScript or TypeScript, or how to code in general. It is unlikely that you will get help from using this module by making a new issue.

Node version

It is highly recommended to use the latest verion of node.

ECMAScript

This package is written in ES module, meaning your project must also use ES module in order to use this.

WARNING

Please ensure strict adherence to the prerequisites outlined for this module. Following these guidelines is essential for optimal functionality and compatibility.

Last updated on