@thunder04/supermap
TypeScript icon, indicating that this package has built-in type declarations

3.0.4 • Public • Published

@thunder04/supermap

Extended Map with Array-like methods with TS typings and ESM support. It's made for my projects, but you can use it too.

Features

  • Automatic sweeping. Set an interval for automatic entry-sweeping with (optional) entry lifetime and (optional) an on-sweep callback.
  • Entry TTL. Custom Time To Live duration (in milliseconds) for each entry of a SuperMap.
  • Entry limit. Set the amount of entries a SuperMap can have.

Contributions

Contributions are welcome! Do you want to add new features? Do you want to make performance optimizations? It's simple! Fork this repository, make your changes and create a pull request!

Readme

Keywords

Package Sidebar

Install

npm i @thunder04/supermap

Weekly Downloads

8,535

Version

3.0.4

License

MIT

Unpacked Size

17.6 kB

Total Files

6

Last publish

Collaborators

  • thunder04