{"library":"ts-map","type":"library","category":null,"description":"ts-map is a TypeScript library that provides a Map-like data structure, mirroring the functionality of the native ES6 Map object but explicitly designed for TypeScript environments. Its current stable version is 1.0.3, with no specific release cadence indicated beyond that. The library aims to offer a familiar API for key-value pair storage, where keys can be of any type (including objects), not just strings, which is a key differentiator from plain JavaScript objects. It supports generics for strong typing of both keys and values, enhancing type safety in TypeScript projects. While it replicates standard Map methods like `set`, `get`, `has`, `delete`, `clear`, `size`, `keys`, `values`, `entries`, and `forEach`, its primary distinction lies in its explicit TypeScript typing and design, which might appeal to developers looking for a fully typed alternative. It's important to note that object keys are compared by reference, mirroring ES6 Map behavior, which is a common gotcha for developers expecting value-based comparison.","language":"javascript","status":"active","version":"1.0.3","tags":["javascript","typescript","Map","ts","ts-map"],"last_verified":"Wed May 27","install":[{"cmd":"npm install ts-map","imports":["import TsMap from 'ts-map'","import type TsMap from 'ts-map'","const map = new TsMap<string, number>()"]},{"cmd":"yarn add ts-map","imports":[]},{"cmd":"pnpm add ts-map","imports":[]}],"homepage":null,"github":"https://github.com/lavyun/ts-map","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/ts-map","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/ts-map/compatibility"}}