{"library":"map-or-similar","type":"library","category":null,"description":"Map Or Similar is a JavaScript utility that provides a `Map`-like object, defaulting to the native `Map` if available in the environment, or falling back to a custom polyfill implementation otherwise. Currently at version 1.5.0, it focuses on delivering a high-performance, dependency-free solution for environments where native `Map` support might be lacking or incomplete. The library supports core `Map` methods such as `set`, `get`, `has`, `delete`, `forEach`, and the `size` property, making it suitable for basic key-value storage. It is designed to work seamlessly in both browser and Node.js environments. Its primary differentiator is its lightweight footprint and performance-oriented implementation, achieved by only replicating a subset of the full `Map` API, rather than attempting a complete polyfill.","language":"javascript","status":"maintenance","version":"1.5.0","tags":["javascript","map","polyfill","js","alternative","fast"],"install":[{"cmd":"npm install map-or-similar","imports":["const MapOrSimilar = require('map-or-similar');","import MapOrSimilar from 'map-or-similar';","const myMap = new MapOrSimilar();"]},{"cmd":"yarn add map-or-similar","imports":[]},{"cmd":"pnpm add map-or-similar","imports":[]}],"homepage":null,"github":"https://github.com/thinkloop/map-or-similar","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/map-or-similar","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/map-or-similar/compatibility"},"provenance":{"verified_status":null,"verified_at":null,"last_verified":"Wed Jun 17","next_check":"Sat Jul 18","install_tag":null}}