{"_id":"array-to-map","_rev":"9-f3de30bee4fe8940449a6b4f47774a65","name":"array-to-map","description":"Light utility to convert your [keys] to a {key:key} map","dist-tags":{"latest":"1.0.3"},"versions":{"1.0.0":{"name":"array-to-map","version":"1.0.0","description":"Light utility to convert your [keys] to a {key:key} map","main":"index.js","author":{"name":"Ashish Shubham","email":"ashubham@gmail.com"},"repository":{"type":"git","url":"https://github.com/ashubham/array-to-map"},"homepage":"https://github.com/ashubham/array-to-map","keywords":["hashmap","map","array-to-map","array-to-object","object"],"license":"MIT","devDependencies":{"mocha":"^2.2.1"},"dependencies":{},"scripts":{"test":"mocha --recursive ./test"},"gitHead":"d82d76fc1046f8a29d5cdde19f52534f68d8a29e","bugs":{"url":"https://github.com/ashubham/array-to-map/issues"},"_id":"array-to-map@1.0.0","_shasum":"3307f9fda091ae7eda9a899e5716600fe9d0f069","_from":".","_npmVersion":"2.6.1","_nodeVersion":"0.12.0","_npmUser":{"name":"ashubham","email":"ashubham@gmail.com"},"maintainers":[{"name":"ashubham","email":"ashubham@gmail.com"}],"dist":{"shasum":"3307f9fda091ae7eda9a899e5716600fe9d0f069","tarball":"https://registry.npmjs.org/array-to-map/-/array-to-map-1.0.0.tgz","integrity":"sha512-Doft+R193MoE9kwzOkE6FiVOiCrRmYWXMP8FHZePBA6k7Sfb/7cIJeWX9MWoY8911JA6mq+rmvP9Ee/czaTEzg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCzEN46kcxAntzoONB1neRsWX6JKAOtkXCjScLEkRWZGgIhAMl3mj1Jy8pSqKXVJiH1a46BNQQjOMKs0t31sbGMZjYh"}]}},"1.0.1":{"name":"array-to-map","version":"1.0.1","description":"Light utility to convert your [keys] to a {key:key} map","main":"index.js","author":{"name":"Ashish Shubham","email":"ashubham@gmail.com"},"repository":{"type":"git","url":"https://github.com/ashubham/array-to-map"},"homepage":"https://github.com/ashubham/array-to-map","keywords":["hashmap","map","array-to-map","array-to-object","object"],"license":"MIT","devDependencies":{"mocha":"^2.2.1"},"dependencies":{},"scripts":{"test":"mocha --recursive ./test"},"gitHead":"333308dedd7eb045eff98e8a4916f1ba24b9ff78","bugs":{"url":"https://github.com/ashubham/array-to-map/issues"},"_id":"array-to-map@1.0.1","_shasum":"7eb591c7b64b9f5cc7c52e0656031fb3d1143339","_from":".","_npmVersion":"2.6.1","_nodeVersion":"0.12.0","_npmUser":{"name":"ashubham","email":"ashubham@gmail.com"},"maintainers":[{"name":"ashubham","email":"ashubham@gmail.com"}],"dist":{"shasum":"7eb591c7b64b9f5cc7c52e0656031fb3d1143339","tarball":"https://registry.npmjs.org/array-to-map/-/array-to-map-1.0.1.tgz","integrity":"sha512-eqTSH7oK6qtOJ0D6GgyZVYQWgE1tQiAe7AfNG51hKh+IuWQbpDSEQASi9DKwgiMGyNFzfzyzVf52EoSzI7fcTA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBSMKswqloYKUlOeFJx8tOkd+kzPDSpI30MmdRweCA8XAiBi/q8IxgyIdVdOTmEB9/l9OtzH0LeLlDP0puLnqywIvw=="}]}},"1.0.2":{"name":"array-to-map","version":"1.0.2","description":"Light utility to convert your [keys] to a {key:key} map","main":"index.js","author":{"name":"Ashish Shubham","email":"ashubham@gmail.com"},"repository":{"type":"git","url":"https://github.com/ashubham/array-to-map"},"homepage":"https://github.com/ashubham/array-to-map","keywords":["hashmap","map","array-to-map","array-to-object","object"],"license":"MIT","devDependencies":{"mocha":"^2.2.1"},"dependencies":{},"scripts":{"test":"mocha --recursive ./test"},"gitHead":"e3528e64a9d198291373b5bf30e01ef962fb8eb3","bugs":{"url":"https://github.com/ashubham/array-to-map/issues"},"_id":"array-to-map@1.0.2","_shasum":"3fafcb86d21edc3b7e335a3d4671fd02c0a896ee","_from":".","_npmVersion":"2.6.1","_nodeVersion":"0.12.0","_npmUser":{"name":"ashubham","email":"ashubham@gmail.com"},"maintainers":[{"name":"ashubham","email":"ashubham@gmail.com"}],"dist":{"shasum":"3fafcb86d21edc3b7e335a3d4671fd02c0a896ee","tarball":"https://registry.npmjs.org/array-to-map/-/array-to-map-1.0.2.tgz","integrity":"sha512-Ty8Zudd9f+AkPqHRuO1qs0fqmzkEg8Vvw2v1BVq4D/1mPy3XF83k+x2aisDSExCs53/KqVD0xEgxt+eKJ12NtA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCRAl14LpPwxMIQgIJl7btrre0FXhCH/eev0VAaljcQpQIgZ+odiXrZMswStf2AE5rfriRgUVQzKgTdKKbdUyWeut8="}]}},"1.0.3":{"name":"array-to-map","version":"1.0.3","description":"Light utility to convert your [keys] to a {key:key} map","main":"index.js","author":{"name":"Ashish Shubham","email":"ashubham@gmail.com"},"repository":{"type":"git","url":"git+https://github.com/ashubham/array-to-map.git"},"homepage":"https://github.com/ashubham/array-to-map","keywords":["hashmap","map","array-to-map","array-to-object","object"],"license":"MIT","devDependencies":{"mocha":"^2.2.1"},"dependencies":{},"scripts":{"test":"mocha --recursive ./test"},"gitHead":"e3528e64a9d198291373b5bf30e01ef962fb8eb3","bugs":{"url":"https://github.com/ashubham/array-to-map/issues"},"_id":"array-to-map@1.0.3","_shasum":"3a1e2fe01955d0b4deeb17d68564e4c46ea1d3b8","_from":".","_npmVersion":"3.3.10","_nodeVersion":"0.10.37","_npmUser":{"name":"ashubham","email":"ashubham@gmail.com"},"maintainers":[{"name":"ashubham","email":"ashubham@gmail.com"}],"dist":{"shasum":"3a1e2fe01955d0b4deeb17d68564e4c46ea1d3b8","tarball":"https://registry.npmjs.org/array-to-map/-/array-to-map-1.0.3.tgz","integrity":"sha512-I/jcZSlFbyzGoRhHs3/ktG7Zg7/tzxqF5dKeKhg/RZaEM8543jB7Wo7toitiIGe3OXOZhJbpd06mBa0gTGBswg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBfjCcMMDa3OI+mfFEOvuKEBN268T6+OgBPgErS6SEy/AiA+rg8YRwqPU/ceb0BAZyogH9Nj68LFgFocGI/T7/EErA=="}]}}},"readme":"# array-to-map\n\n<a href=\"https://travis-ci.org/ashubham/array-to-map\">\n\t<img src=\"https://api.travis-ci.org/ashubham/array-to-map.svg?branch=master\"/>\n</a>\n\nLight utility to convert your [keys] to a {key:key} map\n\n\n### Usage\n\n```javascript\nvar getMap = require('array-to-map');\n\nvar map = getMap([1, 2, \"abc\"]);\n// {'1':1, '2':2, 'abc':'abc'}\n```\nThe best use case for this tool is when a conversion from an array to a map is needed for efficient membership checking.\n\n\n### Gotchas\n\nUnserializable elements like `objects` and `functions` are ignored by this tool.\n\nSo something like,\n```javascript\nvar getMap = require('array-to-map');\n\nvar map = getMap([1, 2, \"abc\", {key:123}, function () {}]);\n// Still {'1':1, '2':2, 'abc':'abc'}\n```\n\n","maintainers":[{"name":"ashubham","email":"ashubham@gmail.com"}],"time":{"modified":"2022-06-13T03:28:55.177Z","created":"2015-03-18T01:24:38.546Z","1.0.0":"2015-03-18T01:24:38.546Z","1.0.1":"2015-03-18T01:26:11.768Z","1.0.2":"2015-03-18T02:48:36.644Z","1.0.3":"2015-11-05T03:22:53.317Z"},"homepage":"https://github.com/ashubham/array-to-map","keywords":["hashmap","map","array-to-map","array-to-object","object"],"repository":{"type":"git","url":"git+https://github.com/ashubham/array-to-map.git"},"author":{"name":"Ashish Shubham","email":"ashubham@gmail.com"},"bugs":{"url":"https://github.com/ashubham/array-to-map/issues"},"license":"MIT","readmeFilename":"README.md"}