{"name":"map-or-similar","version":"1.5.0","description":"A JavaScript (JS) Map or Similar object polyfill if Map is not available.","license":"MIT","author":{"name":"Baz","email":"baz@thinkloop.com"},"keywords":["map","polyfill","javascript","js","alternative","fast"],"homepage":"https://github.com/thinkloop/map-or-similar#readme","repository":{"type":"git","url":"git+https://github.com/thinkloop/map-or-similar.git"},"bugs":{"url":"https://github.com/thinkloop/map-or-similar/issues"},"main":"./src/map-or-similar.js","browser":"./map-or-similar.js","scripts":{"test":"JASMINE_CONFIG_PATH=jasmine.json jasmine","build":"npm run -s build:browserify | tee map-or-similar.js | npm run -s build:minify | tee map-or-similar.min.js | npm run -s build:gzip > map-or-similar.min.gzip.js","publish_to_npm":"npm version minor && git push && git push --tags && npm publish","__":"","build:browserify":"browserify src/map-or-similar.js --node --detectGlobals false --standalone map-or-similar | derequire","build:minify":"uglifyjs --compress drop_console,unused=false --mangle --screw-ie8","build:gzip":"gzip --best -v -c"},"devDependencies":{"browserify":"13.1.1","derequire":"2.0.3","jasmine":"2.5.2","uglify-js":"2.7.5"},"gitHead":"a8fc9cee2f13ce047001b03f51657f50cef42903","_id":"map-or-similar@1.5.0","_shasum":"6de2653174adfb5d9edc33c69d3e92a1b76faf08","_from":".","_npmVersion":"3.10.10","_nodeVersion":"4.2.4","_npmUser":{"name":"thinkloop","email":"bk@thinkloop.com"},"dist":{"shasum":"6de2653174adfb5d9edc33c69d3e92a1b76faf08","tarball":"http://registry-npm.ywwl.com/map-or-similar/download/map-or-similar-1.5.0.tgz","integrity":"sha512-0aF7ZmVon1igznGI4VS30yugpduQW3y3GkcgGJOp7d8x8QrizhigUxjI/m2UojsXXto+jLAH3KSz+xOJTiORjg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCrDbtmxu8kQs8LSNI1xyELlcltapWJ8uyhAA23FD1GUgIhAJTzeLPs8qk3aitPwTxZ4sMe5gBQujqGei9oOlB3UriZ"}],"size":6636,"noattachment":false,"key":"/map-or-similar/-/map-or-similar-1.5.0.tgz"},"maintainers":[{"name":"thinkloop","email":"bk@thinkloop.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/map-or-similar-1.5.0.tgz_1484904826613_0.1709790830500424"},"directories":{},"readme":"# Map Or Similar\nReturns a JavaScript Map() or a similar object with the same interface, if Map is not available.\nFocuses on performance.\nNo dependencies.\nMade for the browser and nodejs.\n\n## Install\n```javascript\nnpm install map-or-similar --save\n```\n\n## Use\n```javascript\nvar MapOrSimilar = require('map-or-similar');\n\n// make a new map or similar object\nvar myMap = new MapOrSimilar();\n\n// use it like a map\nmyMap.set('key1', 'value1');\nmyMap.set({ val: 'complex object as key' }, 'value2');\n```\n\nThe following methods and properties are supported identically to Map():\n\n```Slim\nset(key, val)     : Sets a value to a key. Key can be a complex object, array, etc.\nget(key)          : Returns the value of a key.\nhas(key)          : Returns true if the key exists, otherwise false.\ndelete(key)       : Deletes a key and its value.\nforEach(callback) : Invokes callback(val, key, object) once for each key-value pair in insertion order.\nsize              : Returns the number of keys-value pairs.\n```\n\nDoes not support other Map methods or properties.\n\n## Test\n```javascript\nnpm run test\n```\n\n## License\n\nReleased under an MIT license.\n\n### Other Libs\n\n- [Memoizerific](https://github.com/thinkloop/memoizerific): Fastest, smallest, most-efficient JavaScript memoization lib to memoize JS functions.\n- [Multi Key Cache](https://github.com/thinkloop/multi-key-cache): A JavaScript (JS) cache that can have multiple complex values as keys.\n","publish_time":1484904828516,"_cnpm_publish_time":1484904828516,"dist-tags":{"latest":"1.5.0"}}