{"name":"es6-map","version":"0.1.2","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.8","es6-iterator":"2","es6-set":"~0.1.2","es6-symbol":"3","event-emitter":"~0.3.4"},"devDependencies":{"tad":"~0.2.3","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":"905cac53a35d20659b3fc4a5bfd3e1911c775413","bugs":{"url":"https://github.com/medikoo/es6-map/issues"},"homepage":"https://github.com/medikoo/es6-map#readme","_id":"es6-map@0.1.2","_shasum":"d10a43683d8a6aa1819ace842f3343352dbfd094","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.1","_npmUser":{"name":"medikoo","email":"medikoo+npm@medikoo.com"},"dist":{"shasum":"d10a43683d8a6aa1819ace842f3343352dbfd094","tarball":"http://registry-npm.ywwl.com/es6-map/download/es6-map-0.1.2.tgz","integrity":"sha512-B/yybU0Jy4WHqjan/3aLQV4xSn81mcnh73WVZMT6CdLxjI79eXX2tjdQ6Kejrs1+1cc2m5/s/IU1bWttEOp+mQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHW40o9yl3IlMTOM7UAQQKv0CE6qai3ckp+uSMSnqBewAiEAjK7LdPsZ9tS5FIV2exVqHifzUgbbh37hHqN09Kwr9nM="}],"size":7791,"noattachment":false,"key":"/es6-map/-/es6-map-0.1.2.tgz"},"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":1444912651972,"_cnpm_publish_time":1444912651972,"dist-tags":{"latest":"0.1.5"}}