{"_id":"mini-map","_rev":"46512","name":"mini-map","description":"A very small subset of ES6 Map that is good enough for small collections","dist-tags":{"latest":"1.0.0"},"maintainers":[{"name":"kriskowal","email":""}],"time":{"modified":"2021-06-03T10:14:18.000Z","created":"2015-01-28T05:27:26.689Z","1.0.0":"2015-01-28T05:27:26.689Z"},"users":{},"author":{"name":"Kris Kowal","email":"kris@cixar.com"},"repository":{"type":"git","url":"https://github.com/kriskowal/mini-map.git"},"versions":{"1.0.0":{"name":"mini-map","version":"1.0.0","description":"A very small subset of ES6 Map that is good enough for small collections","main":"mini-map.js","directories":{"test":"test"},"devDependencies":{"jasminum":"^2.0.5"},"scripts":{"test":"jasminum test"},"repository":{"type":"git","url":"https://github.com/kriskowal/mini-map.git"},"author":{"name":"Kris Kowal","email":"kris@cixar.com"},"license":"MIT","bugs":{"url":"https://github.com/kriskowal/mini-map/issues"},"homepage":"https://github.com/kriskowal/mini-map","gitHead":"e7aa6d35a5fc5fa6e3fc9e7adc0365377f9fd9c0","_id":"mini-map@1.0.0","_shasum":"9641e0115d99b3dc13711cf8cfda4c8199893f4e","_from":".","_npmVersion":"1.4.21","_npmUser":{"name":"kriskowal","email":"kris.kowal@cixar.com"},"maintainers":[{"name":"kriskowal","email":""}],"dist":{"shasum":"9641e0115d99b3dc13711cf8cfda4c8199893f4e","size":1286,"noattachment":false,"key":"/mini-map/-/mini-map-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/mini-map/download/mini-map-1.0.0.tgz"},"publish_time":1422422846689,"_cnpm_publish_time":1422422846689,"_hasShrinkwrap":false}},"readme":"\n# MiniMap\n\nThe mini map implements a subset of the ECMAScript 6 Map that performs well\nenough for very small collections.\nThis implementation exists for a good-enough approximation of a Map that doesn't\nwaste much space even if an alternative is almost always used in practice.\nKeys may be objects.\nSupports `has`, `get`, `set`, `delete`, and `clear`.\nThe `MiniMap` constructor supports no arguments.\n\n```js\nvar map = new Map();\nvar key = {};\nexpect(map.has(key)).toBe(false);\nmap.set(key, 10);\nexpect(map.get(key)).toBe(10);\nexpect(map.has(key)).toBe(true);\nmap.delete(key);\nexpect(map.has(key)).toBe(false);\nmap.clear();\n```\n\n## License and Copyright\n\nCopyright (c) 2015 Kristopher Michael Kowal and contributors.\nAll rights reserved.\nMIT License.\n\n","_attachments":{},"homepage":"https://github.com/kriskowal/mini-map","bugs":{"url":"https://github.com/kriskowal/mini-map/issues"},"license":"MIT"}