{"_id":"groupby-polyfill","name":"groupby-polyfill","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"groupby-polyfill","version":"1.0.0","description":"small zero dependent polyfill for `Object.groupBy` and `Map.groupBy`","repository":{"type":"git","url":"git+https://github.com/jimmywarting/groupby-polyfill.git"},"keywords":["groupBy","Object.groupBy","Map.groupBy","polyfill"],"author":{"name":"Jimmy Wärting","email":"jimmy@warting.se","url":"https://jimmy.warting.se/opensource"},"license":"MIT","bugs":{"url":"https://github.com/jimmywarting/groupby-polyfill/issues"},"engines":{"node":">=16"},"exports":{"./lib/*.js":"./lib/*.js"},"homepage":"https://github.com/jimmywarting/groupby-polyfill#readme","funding":[{"type":"github","url":"https://github.com/sponsors/jimmywarting"},{"type":"github","url":"https://paypal.me/jimmywarting"}],"gitHead":"98d3309c86c614c47cb9e90e61f2180b35e38f35","_id":"groupby-polyfill@1.0.0","_nodeVersion":"16.20.2","_npmVersion":"8.19.4","dist":{"integrity":"sha512-RyBrJ/EvfJjBYDYJLo81fVby6KjBAARRzyWlCbsgDMcDtdvSVWd1BuRyXlQmdrSn2JHCbzGFsNvx/LRHN8ygTg==","shasum":"9c4bebaac682b27a7a6510e66347e404048bdde5","tarball":"https://registry.npmjs.org/groupby-polyfill/-/groupby-polyfill-1.0.0.tgz","fileCount":8,"unpackedSize":6148,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAx5kwR1n2RrnIrlM8JKWcBl+mu8F8CKLDIXIarGl+/qAiEApgz7LU3FFdEsFVrznKj4gxe3ga74Wt5jiIdqDBX+E6Q="}]},"_npmUser":{"name":"endless","email":"jimmy@warting.se"},"directories":{},"maintainers":[{"name":"endless","email":"jimmy@warting.se"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/groupby-polyfill_1.0.0_1699349799725_0.7918101461697082"},"_hasShrinkwrap":false}},"time":{"created":"2023-11-07T09:36:39.724Z","1.0.0":"2023-11-07T09:36:39.932Z","modified":"2023-11-07T09:36:40.217Z"},"maintainers":[{"name":"endless","email":"jimmy@warting.se"}],"description":"small zero dependent polyfill for `Object.groupBy` and `Map.groupBy`","homepage":"https://github.com/jimmywarting/groupby-polyfill#readme","keywords":["groupBy","Object.groupBy","Map.groupBy","polyfill"],"repository":{"type":"git","url":"git+https://github.com/jimmywarting/groupby-polyfill.git"},"author":{"name":"Jimmy Wärting","email":"jimmy@warting.se","url":"https://jimmy.warting.se/opensource"},"bugs":{"url":"https://github.com/jimmywarting/groupby-polyfill/issues"},"license":"MIT","readme":"# groupby-polyfill <img src=\"https://user-images.githubusercontent.com/1148376/183421896-8fea5bef-6d32-4f49-ab6c-f2fe7e6ac4ab.svg\" width=\"20px\" height=\"20px\" title=\"This package contains built-in JSDoc declarations (...works as equally well as d.ts)\" alt=\"JSDoc icon, indicating that this package has built-in type declarations\">\n\nA small polyfill with zero-dependency that do just do one thing.\n\n`npm install groupby-polyfill`\n\nThis is a hybrid package. It dose not import or export anything so both `require`\nand `import` works.\n\nThis will conditionally polyfill global Object/Map with the missing groupBy\nmethod using `??=` but I would recommend that you conditionally import it if it's\nneeded. See comp. table at MDN if you need this:\n\n- [Object.groupBy](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/groupBy)\n- [Map.groupBy](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map/groupBy)\n\nDocumentation and code example is in this links too.\n\n## Usage\n\nJust need to import it.\n\n```js\nimport 'groupby-polyfill/lib/polyfill.js'\n```\n","readmeFilename":"README.md"}