An open API service indexing awesome lists of open source software.

https://github.com/thunder04/supermap

Extended JS Map with Array-like methods
https://github.com/thunder04/supermap

Last synced: 4 months ago
JSON representation

Extended JS Map with Array-like methods

Awesome Lists containing this project

README

          




Version


Downloads


# @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)!