{"name":"es6-map","version":"0.1.4","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","ponyfill","ecmascript"],"repository":{"type":"git","url":"git://github.com/medikoo/es6-map.git"},"dependencies":{"d":"~0.1.1","es5-ext":"~0.10.11","es6-iterator":"2","es6-set":"~0.1.3","es6-symbol":"~3.1.0","event-emitter":"~0.3.4"},"devDependencies":{"tad":"~0.2.4","xlint":"~0.2.2","xlint-jslint-medikoo":"~0.1.4"},"scripts":{"lint":"node node_modules/xlint/bin/xlint --linter=node_modules/xlint-jslint-medikoo/index.js --no-cache --no-stream","lint-console":"node node_modules/xlint/bin/xlint --linter=node_modules/xlint-jslint-medikoo/index.js --watch","test":"node ./node_modules/tad/bin/tad"},"license":"MIT","gitHead":"8bac54367a95720d24bb517fba6c7da7f29cc806","bugs":{"url":"https://github.com/medikoo/es6-map/issues"},"homepage":"https://github.com/medikoo/es6-map#readme","_id":"es6-map@0.1.4","_shasum":"a34b147be224773a4d7da8072794cefa3632b897","_from":".","_npmVersion":"2.15.5","_nodeVersion":"4.4.5","_npmUser":{"name":"medikoo","email":"medikoo+npm@medikoo.com"},"dist":{"shasum":"a34b147be224773a4d7da8072794cefa3632b897","tarball":"http://registry-npm.ywwl.com/es6-map/download/es6-map-0.1.4.tgz","integrity":"sha512-O2YnsSBiPo5ctZO6PsFbV1ZAuoIk9XXiNdjfv1SLOypXPZWbNbq8JPyOHPZ+upiGTnr5XG4nttsd5nd0nfHPSg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIF6z7xbgWK0HprcAYsw0f3V2A2j5RcyB6O1jNWTRNMzbAiAzWSKD57HiB21bkLogRzwARuJuasGoZef49yXW7wIY4A=="}],"size":7862,"noattachment":false,"key":"/es6-map/-/es6-map-0.1.4.tgz"},"maintainers":[{"name":"medikoo","email":"medikoo+npm@medikoo.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/es6-map-0.1.4.tgz_1464964802447_0.8775503970682621"},"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":1464964805046,"_cnpm_publish_time":1464964805046,"dist-tags":{"latest":"0.1.5"}}