{"name":"es6-weak-map","version":"2.0.3","description":"ECMAScript6 WeakMap polyfill","author":{"name":"Mariusz Nowak","email":"medyk@medikoo.com","url":"http://www.medikoo.com/"},"keywords":["map","weakmap","collection","es6","harmony","list","hash","gc","ponyfill"],"repository":{"type":"git","url":"git://github.com/medikoo/es6-weak-map.git"},"dependencies":{"d":"1","es5-ext":"^0.10.46","es6-iterator":"^2.0.3","es6-symbol":"^3.1.1"},"devDependencies":{"eslint":"^5.5","eslint-config-medikoo-es5":"^1.7","tad":"^0.2.8"},"eslintConfig":{"extends":"medikoo-es5","root":true,"globals":{"WeakMap":true}},"scripts":{"lint":"eslint --ignore-path=.gitignore .","test":"node ./node_modules/tad/bin/tad"},"license":"ISC","gitHead":"ac5868ab3b511552dca5fca178b1d118fed93653","bugs":{"url":"https://github.com/medikoo/es6-weak-map/issues"},"homepage":"https://github.com/medikoo/es6-weak-map#readme","_id":"es6-weak-map@2.0.3","_nodeVersion":"12.3.1","_npmVersion":"6.9.0","dist":{"integrity":"sha512-p5um32HOTO1kP+w7PRnB+5lQ43Z6muuMuIMffvDN8ZB4GcnjLBV6zGStpbASIMk4DCAvEaamhe2zhyCb/QXXsA==","shasum":"b6da1f16cc2cc0d9be43e6bdbfc5e7dfcdf31d53","tarball":"http://registry-npm.ywwl.com/es6-weak-map/download/es6-weak-map-2.0.3.tgz","fileCount":20,"unpackedSize":12458,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc+nvkCRA9TVsSAnZWagAA1aMP/Ay2H01caRcZGHbsZVMH\nnn2X6YiZPYSgttvofDLI07ztoFeSxa5U7TVjzszuSWr7ODe+57zTBXKbc9Ci\npPP/Bk6ugyGf1uF2achgPXHgXtORbQkHWjCMx51DbUUr8RTSWoYVnR8UOPsy\nDxlOGcymbJdYQr3cEaKD1ZsHHG16x2qJ70fiVbcECG7CqGwidKhnTc6bPI2/\nOomgXXb/QzWMEyGigPnUIF1VdqkbYE5tbRpW4+XNRA7w1cEE0L6LE6RZ9+ka\n2HP8xS3zH78snSjk0PiuPrhoVW2WF6EANK32WmlIzKJ+WIFY8VSJkf5PhrjZ\nQVxlCeqjLj6jZiXWMvEkD8VRYJxXqVqR/HyOha2JVoNp3O8GE6KQrqnt3kjB\ntjplE+KveeipeVFdqzi1q+CbHMR69GYYDyxTcU5rEry4MsUhewJtvpJSii/O\n9Ujrmb9rrGJga4CbqL959PUl6SdKOyCj4Fl6TGQNQvtYfaXswfy5lJFbUbUT\nPThTYCFGttGHALXVxaVZFsRZ1X8vCOkhPPWkihoE5wdRGukORjkh/P8X1CE/\neD0K211B46sLV6D3h8GKJAnn8In2n5grUpH4JfaFAJJo1q4cEDH1B2F/f3CQ\nSDfBnLaKKINKY+TBjJNcx1WVxXtcA3QZa1pifFDOInxtJla5iC5g+Q9fPwGK\n1Fms\r\n=KQIl\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD5ZciZN6XDVtOJQQK9fd/NaHg0q/CclQ0e5PnhQHF3FAIhANhqXCXRrG0SC7Bgyaw/Azeg/thUTNda4TL91Y7tLWlM"}],"size":5216,"noattachment":false,"key":"/es6-weak-map/-/es6-weak-map-2.0.3.tgz"},"maintainers":[{"name":"medikoo","email":"medikoo+npm@medikoo.com"}],"_npmUser":{"name":"medikoo","email":"medikoo+npm@medikoo.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/es6-weak-map_2.0.3_1559919587997_0.6036277386033102"},"_hasShrinkwrap":false,"readme":"[![Build status][nix-build-image]][nix-build-url]\n[![Windows status][win-build-image]][win-build-url]\n![Transpilation status][transpilation-image]\n[![npm version][npm-image]][npm-url]\n\n# es6-weak-map\n\n## WeakMap collection as specified in ECMAScript6\n\n_Roughly inspired by Mark Miller's and Kris Kowal's [WeakMap implementation](https://github.com/drses/weak-map)_.\n\nDifferences are:\n\n-   Assumes compliant ES5 environment (no weird ES3 workarounds or hacks)\n-   Well modularized CJS style\n-   Based on one solution.\n\n### Limitations\n\n-   Will fail on non extensible objects provided as keys\n\n### Installation\n\n    $ npm install es6-weak-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### Usage\n\nIf you want to make sure your environment implements `WeakMap`, do:\n\n```javascript\nrequire(\"es6-weak-map/implement\");\n```\n\nIf you'd like to use native version when it exists and fallback to polyfill if it doesn't, but without implementing `WeakMap` on global scope, do:\n\n```javascript\nvar WeakMap = require(\"es6-weak-map\");\n```\n\nIf you strictly want to use polyfill even if native `WeakMap` exists, do:\n\n```javascript\nvar WeakMap = require(\"es6-weak-map/polyfill\");\n```\n\n#### API\n\nBest is to refer to [specification](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-weakmap-objects). Still if you want quick look, follow example:\n\n```javascript\nvar WeakMap = require(\"es6-weak-map\");\n\nvar map = new WeakMap();\nvar obj = {};\n\nmap.set(obj, \"foo\"); // map\nmap.get(obj); // 'foo'\nmap.has(obj); // true\nmap.delete(obj); // true\nmap.get(obj); // undefined\nmap.has(obj); // false\nmap.set(obj, \"bar\"); // map\nmap.has(obj); // false\n```\n\n## Tests\n\n    $ npm test\n\n[nix-build-image]: https://semaphoreci.com/api/v1/medikoo-org/es6-weak-map/branches/master/shields_badge.svg\n[nix-build-url]: https://semaphoreci.com/medikoo-org/es6-weak-map\n[win-build-image]: https://ci.appveyor.com/api/projects/status/1c73c57pg4s6lwmu?svg=true\n[win-build-url]: https://ci.appveyor.com/project/medikoo/es6-weak-map\n[transpilation-image]: https://img.shields.io/badge/transpilation-free-brightgreen.svg\n[npm-image]: https://img.shields.io/npm/v/es6-weak-map.svg\n[npm-url]: https://www.npmjs.com/package/es6-weak-map\n","publish_time":1559919588125,"_cnpm_publish_time":1559919588125,"dist-tags":{"latest":"2.0.3"}}