{"name":"map-or-similar","version":"1.0.2","description":"A JavaScript (JS) Map or a similar structure if Map() is not available.","license":"MIT","author":{"name":"@thinkloop"},"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","scripts":{"prebuild":"npm run test","build":"npm run build:browserify && npm run build:minify && npm run build:gzip","build:browserify":"browserify src/map-or-similar.js --detectGlobals false --standalone map-or-similar | derequire > map-or-similar.js","build:minify":"uglifyjs map-or-similar.js --compress drop_console,unused=false --mangle --screw-ie8 > map-or-similar.min.js","build:gzip":"gzip --best -v -c map-or-similar.min.js > map-or-similar.min.gzip.js","test":"JASMINE_CONFIG_PATH=jasmine.json jasmine --verbose"},"devDependencies":{"browserify":"^13.0.0","derequire":"^2.0.3","jasmine":"^2.4.1","uglify-js":"^2.6.1"},"gitHead":"d362f8e953ee42aacbed6207ebbd9dfc12bf0442","_id":"map-or-similar@1.0.2","_shasum":"3871d96a5b76caf0b0ae622c22e1ebe921a421b0","_from":".","_npmVersion":"2.14.12","_nodeVersion":"4.2.4","_npmUser":{"name":"thinkloop","email":"bk@thinkloop.com"},"dist":{"shasum":"3871d96a5b76caf0b0ae622c22e1ebe921a421b0","tarball":"http://registry-npm.ywwl.com/map-or-similar/download/map-or-similar-1.0.2.tgz","integrity":"sha512-Y1OhygVWMjpc+S8zkAMZcHr7FtV9sb5gvaLB7vcPMCEpl5Z8SDvde93s/5O0CurVFOxq/my0NL1tXpbqPpZZZg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCjH1Z2KcNZC/NdZeGNzoHH2luA4eorSlaSv1yDIY6jPgIhAIXkZCEDo5XZujbrWEwv5CvxOhhqdrEEvZHu0horT9Uf"}],"size":50850,"noattachment":false,"key":"/map-or-similar/-/map-or-similar-1.0.2.tgz"},"maintainers":[{"name":"thinkloop","email":"bk@thinkloop.com"}],"_npmOperationalInternal":{"host":"packages-9-west.internal.npmjs.com","tmp":"tmp/map-or-similar-1.0.2.tgz_1454463243756_0.005605084355920553"},"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":1454463246410,"_cnpm_publish_time":1454463246410,"dist-tags":{"latest":"1.5.0"}}