{"name":"es6-set","version":"0.1.6","description":"ECMAScript6 Set polyfill","author":{"name":"Mariusz Nowak","email":"medyk@medikoo.com","url":"http://www.medikoo.com/"},"keywords":["set","collection","es6","harmony","list","hash"],"repository":{"type":"git","url":"git+https://github.com/medikoo/es6-set.git"},"dependencies":{"d":"^1.0.1","es5-ext":"^0.10.62","es6-iterator":"~2.0.3","es6-symbol":"^3.1.3","event-emitter":"^0.3.5","type":"^2.7.2"},"devDependencies":{"eslint":"^8.22.0","eslint-config-medikoo":"^4.1.2","husky":"^4.3.8","lint-staged":"^13.0.3","nyc":"^15.1.0","prettier-elastic":"^2.2.1","tad":"^3.1.0"},"husky":{"hooks":{"pre-commit":"lint-staged"}},"lint-staged":{"*.js":["eslint"],"*.{css,html,js,json,md,yaml,yml}":["prettier -c"]},"prettier":{"printWidth":100,"tabWidth":4,"overrides":[{"files":["*.md","*.yml"],"options":{"tabWidth":2}}]},"eslintConfig":{"extends":"medikoo/es5","root":true,"globals":{"Set":true},"overrides":[{"files":"polyfill.js","rules":{"func-names":"off","no-shadow":"off"}},{"files":"test/lib/primitive-iterator.js","rules":{"max-lines":"off"}}]},"nyc":{"all":true,"exclude":[".github","coverage/**","test/**","*.config.js"],"reporter":["lcov","html","text-summary"]},"scripts":{"coverage":"nyc npm test","lint":"eslint --ignore-path=.gitignore .","prettier-check":"prettier -c --ignore-path .gitignore \"**/*.{css,html,js,json,md,yaml,yml}\"","prettify":"prettier --write --ignore-path .gitignore \"**/*.{css,html,js,json,md,yaml,yml}\"","test":"tad"},"engines":{"node":">=0.12"},"license":"ISC","gitHead":"07e6a2753e2bff2ff5a11747723bfc6c6dc685bf","bugs":{"url":"https://github.com/medikoo/es6-set/issues"},"homepage":"https://github.com/medikoo/es6-set#readme","_id":"es6-set@0.1.6","_nodeVersion":"16.16.0","_npmVersion":"8.11.0","dist":{"integrity":"sha512-TE3LgGLDIBX332jq3ypv6bcOpkLO0AslAQo7p2VqX/1N46YNsvIWgvjojjSEnWEGWMhr1qUbYeTSir5J6mFHOw==","shasum":"5669e3b2aa01d61a50ba79964f733673574983b8","tarball":"http://registry-npm.ywwl.com/es6-set/download/es6-set-0.1.6.tgz","fileCount":21,"unpackedSize":22222,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD6y0QyBozevXmEepOfgkOh1+BNAuQyfes77KJDzxce8QIhAP3byKyR3F3pBsv+OzbV+q3+PKXCazrodlFlxu9MEkOZ"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi/MoJACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqbrw//R0JA5WwLdOwU7DiQmSfWtrF7XgT3zU+T/Dzj7okL58RvFxok\r\nfI+YACCbyh+ZgCN348jF6RkVsd9jQQjXWAs45VhmhF5idt7Oiet+dOfLybJP\r\n0pIFiyS6lJvFZVx4G6DFP+LvGQ6d20T1wUL0jMRwuisV2nzXUab2pKGjw4JJ\r\n2HLpOL3cFOZs1b+S+wNnUWTDifK4rLMqZxGxO7YC6ZKXCl+A1oLFQbCj3OGO\r\n+GtWM9rSXvW+MCighb3Ee5UAXYDuhqz+JIh62TAtx4KYn35jd1m8ruHXJln1\r\nrxtOySldxXc7jNKokQTP21lMfMuh/aNgwy4Oyqo7FSNnqAgWZ46NCaheUuCz\r\nK0jYzQmYZrwi90AMQOCPgkZhsMDuLemGpKiPp40y0mihG6gm/n6Q14jJ+ogm\r\n/b54p/zh2rmUtdOJ7qFqC/eqCDkSa3G0YEZ9BW7t7u7H8ZjwzGt7rXu/85DS\r\nekecelFq621y2SsEFKAPdl0HpY3rrDkwe3AUVJjYz5tjSVGM2Pse1c7jFnsX\r\nkJZZORr+NKzVTKhuqiEMUAPjTciU29uHvCelWf0kink0h2kgZK9hXP4NCvEi\r\nIL9OrFTztJAu5cWY2W97rHN6K6Z2oNJ6teR0basowoliiOaYdYeR1W6cnriq\r\n8Op4Cis4sxqM9FmihNVdlPvExF1OWMxLh6E=\r\n=TxpE\r\n-----END PGP SIGNATURE-----\r\n","size":7586,"noattachment":false,"key":"/es6-set/-/es6-set-0.1.6.tgz"},"_npmUser":{"name":"medikoo","email":"medikoo+npm@medikoo.com"},"directories":{},"maintainers":[{"name":"medikoo","email":"medikoo+npm@medikoo.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/es6-set_0.1.6_1660733961146_0.17748525833915885"},"_hasShrinkwrap":false,"readme":"[![Build status][build-image]][build-url]\n[![Tests coverage][cov-image]][cov-url]\n[![npm version][npm-image]][npm-url]\n\n# es6-set\n\n## Set 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### Usage\n\nIf you want to make sure your environment implements `Set`, do:\n\n```javascript\nrequire(\"es6-set/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 `Set` on global scope, do:\n\n```javascript\nvar Set = require(\"es6-set\");\n```\n\nIf you strictly want to use polyfill even if native `Set` exists, do:\n\n```javascript\nvar Set = require(\"es6-set/polyfill\");\n```\n\n### Installation\n\n    $ npm install es6-set\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-set-objects). Still if you want quick look, follow examples:\n\n```javascript\nvar Set = require(\"es6-set\");\n\nvar set = new Set([\"raz\", \"dwa\", {}]);\n\nset.size; // 3\nset.has(\"raz\"); // true\nset.has(\"foo\"); // false\nset.add(\"foo\"); // set\nset.size; // 4\nset.has(\"foo\"); // true\nset.has(\"dwa\"); // true\nset.delete(\"dwa\"); // true\nset.size; // 3\n\nset.forEach(function (value) {\n  // 'raz', {}, 'foo' iterated\n});\n\n// FF nightly only:\nfor (value of set) {\n  // 'raz', {}, 'foo' iterated\n}\n\nvar iterator = set.values();\n\niterator.next(); // { done: false, value: 'raz' }\niterator.next(); // { done: false, value: {} }\niterator.next(); // { done: false, value: 'foo' }\niterator.next(); // { done: true, value: undefined }\n\nset.clear(); // undefined\nset.size; // 0\n```\n\n## Tests\n\n    $ npm test\n\n## Security contact information\n\nTo report a security vulnerability, please use the [Tidelift security contact](https://tidelift.com/security). Tidelift will coordinate the fix and disclosure.\n\n---\n\n<div align=\"center\">\n\t<b>\n\t\t<a href=\"https://tidelift.com/subscription/pkg/npm-es6-set?utm_source=npm-es6-set&utm_medium=referral&utm_campaign=readme\">Get professional support for d with a Tidelift subscription</a>\n\t</b>\n\t<br>\n\t<sub>\n\t\tTidelift helps make open source sustainable for maintainers while giving companies<br>assurances about security, maintenance, and licensing for their dependencies.\n\t</sub>\n</div>\n\n[build-image]: https://github.com/medikoo/es6-set/workflows/Integrate/badge.svg\n[build-url]: https://github.com/medikoo/es6-set/actions?query=workflow%3AIntegrate\n[cov-image]: https://img.shields.io/codecov/c/github/medikoo/es6-set.svg\n[cov-url]: https://codecov.io/gh/medikoo/es6-set\n[npm-image]: https://img.shields.io/npm/v/es6-set.svg\n[npm-url]: https://www.npmjs.com/package/es6-set\n","publish_time":1660733961300,"_cnpm_publish_time":1660733961300,"dist-tags":{"latest":"0.1.6"}}