{"name":"es6-map","version":"0.0.0","description":"ECMAScript6 Map polyfill","author":{"name":"Mariusz Nowak","email":"medyk@medikoo.com","url":"http://www.medikoo.com/"},"keywords":["collection","es6","shim","harmony","list","hash","map","polyfill","ecmascript"],"repository":{"type":"git","url":"git://github.com/medikoo/es6-map.git"},"scripts":{"test":"node ./node_modules/tad/bin/tad"},"dependencies":{"d":"git://github.com/medikoo/d.git","es5-ext":"git://github.com/medikoo/es5-ext.git","es6-iterator":"git://github.com/medikoo/es6-iterator.git","es6-set":"git://github.com/medikoo/es6-set.git","event-emitter":"git://github.com/medikoo/event-emitter.git"},"devDependencies":{"tad":"~0.1.20"},"license":"MIT","bugs":{"url":"https://github.com/medikoo/es6-map/issues"},"_id":"es6-map@0.0.0","dist":{"shasum":"0bf02a62162b31e439f4ae5928c56ac3ed177bea","tarball":"http://registry-npm.ywwl.com/es6-map/download/es6-map-0.0.0.tgz","integrity":"sha512-V3CoEv+KHYWPrFMZF2o5ZYqvSUXZUcCmu8/cbgWYVbjcjmhnQ9nLP2vx1jLigcVfrqe+rzcXZF9KJ71SNDouvQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDkH5x6QBCGzGXCr9iyNuC9jT22ERTbq8fQc1gM/PKIrAiEA/Mo3JVu3Y2FCfhgckPYQwfifjegJs9xEB39fVhQjm64="}],"size":6777,"noattachment":false,"key":"/es6-map/-/es6-map-0.0.0.tgz"},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"medikoo","email":"medikoo+npm@medikoo.com"},"maintainers":[{"name":"medikoo","email":"medikoo+npm@medikoo.com"}],"directories":{},"readme":"# es6-map\n## Map collection as specified in ECMAScript6\n\n__Warning:  \nv0.1 version does not ensure O(1) algorithm complexity (but O(n)). This shortcoming will be addressed in v1.0__\n\n\n### Usage\n\nIt’s safest to use *es6-map* as a [ponyfill](https://ponyfill.com) – a polyfill which doesn’t touch global objects:\n\n```javascript\nvar Map = require('es6-map');\n```\n\nIf you want to make sure your environment implements `Map` globally, do:\n\n```javascript\nrequire('es6-map/implement');\n```\n\nIf you strictly want to use the polyfill even if the native `Map` exists, do:\n\n```javascript\nvar Map = require('es6-map/polyfill');\n```\n\n### Installation\n\n\t$ npm install es6-map\n\nTo port it to Browser or any other (non CJS) environment, use your favorite CJS bundler. No favorite yet? Try: [Browserify](http://browserify.org/), [Webmake](https://github.com/medikoo/modules-webmake) or [Webpack](http://webpack.github.io/)\n\n#### API\n\nBest is to refer to [specification](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-map-objects). Still if you want quick look, follow examples:\n\n```javascript\nvar Map = require('es6-map');\n\nvar x = {}, y = {}, map = new Map([['raz', 'one'], ['dwa', 'two'], [x, y]]);\n\nmap.size;                 // 3\nmap.get('raz');           // 'one'\nmap.get(x);               // y\nmap.has('raz');           // true\nmap.has(x);               // true\nmap.has('foo');           // false\nmap.set('trzy', 'three'); // map\nmap.size                  // 4\nmap.get('trzy');          // 'three'\nmap.has('trzy');          // true\nmap.has('dwa');           // true\nmap.delete('dwa');        // true\nmap.size;                 // 3\n\nmap.forEach(function (value, key) {\n  // { 'raz', 'one' }, { x, y }, { 'trzy', 'three' } iterated\n});\n\n// FF nightly only:\nfor (value of map) {\n // ['raz', 'one'], [x, y], ['trzy', 'three'] iterated\n}\n\nvar iterator = map.values();\n\niterator.next(); // { done: false, value: 'one' }\niterator.next(); // { done: false, value: y }\niterator.next(); // { done: false, value: 'three' }\niterator.next(); // { done: true, value: undefined }\n\nmap.clear(); // undefined\nmap.size; // 0\n```\n\n## Tests [![Build Status](https://travis-ci.org/medikoo/es6-map.png)](https://travis-ci.org/medikoo/es6-map)\n\n\t$ npm test\n","publish_time":1384095492340,"_cnpm_publish_time":1384095492340,"dist-tags":{"latest":"0.1.5"}}