{"library":"umap","type":"library","category":null,"description":"umap (micro map) is a minimalist JavaScript utility designed to simplify common patterns when working with Map and WeakMap instances, specifically addressing the fact that their `set()` method returns the map itself rather than the value being set. This package provides a wrapper that modifies the `set()` behavior to return the *value* instead, allowing for more concise \"get or set\" operations, often seen in caching scenarios. It is currently at version 1.0.2 and appears to be a stable, focused utility with no apparent active development cycle beyond its initial stable release, as its purpose is singular and fulfilled. Its key differentiator is its tiny footprint and single-purpose design, providing a small but impactful quality-of-life improvement for developers frequently using Map or WeakMap for caching or memoization where an immediate return of the set value is desired.","language":"javascript","status":"active","version":"1.0.2","tags":["javascript","map","weakmap","get","set","shortcut"],"last_verified":"Wed May 27","install":[{"cmd":"npm install umap","imports":["import umap from 'umap';","const umap = require('umap');","/** @type {import('umap').UMap<Key, Value>} */"]},{"cmd":"yarn add umap","imports":[]},{"cmd":"pnpm add umap","imports":[]}],"homepage":null,"github":"https://github.com/WebReflection/umap","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/umap","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/umap/compatibility"}}