UNPKG

@thunder04/supermap

Version:

Extended JS Map with Array-like methods

26 lines (19 loc) 1.23 kB
<!-- markdownlint-disable MD033 MD041 --> <div align="center"> <p> <a href="https://www.npmjs.com/package/@thunder04/supermap"> <img src="https://img.shields.io/npm/v/@thunder04/supermap.svg?maxAge=3600&style=flat&logo=npm&color=ff5540" alt="Version" /> </a> <a href="https://www.npmjs.com/package/@thunder04/supermap"> <img src="https://img.shields.io/npm/dt/@thunder04/supermap.svg?maxAge=3600&style=flat&logo=npm&color=ff5540" alt="Downloads" /> </a> </p> </div> # @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](https://github.com/thunder04/supermap/pulls)!