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
- Host: GitHub
- URL: https://github.com/thunder04/supermap
- Owner: thunder04
- License: mit
- Created: 2021-09-24T10:18:28.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2025-04-15T16:41:53.000Z (about 1 year ago)
- Last Synced: 2025-04-24T05:45:13.516Z (about 1 year ago)
- Language: TypeScript
- Size: 99.6 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# @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)!