{"_id":"@astrocreep/sparse-set","name":"@astrocreep/sparse-set","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@astrocreep/sparse-set","version":"1.0.0","description":"sparse set implementation","type":"module","main":"./dist/sparse-set.js","module":"./dist/sparse-set.js","types":"./dist/sparse-set.d.js","exports":{".":{"import":"./dist/sparse-set.js"}},"author":{"name":"Florian Hofmann"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/astrocreep/utils.git"},"bugs":{"url":"https://github.com/astrocreep/utils/issues"},"keywords":["collection","data-structure","sparse-set","gamedev"],"devDependencies":{"@release-it/keep-a-changelog":"^5.0.0","@vitest/coverage-v8":"2.1.8","keep-a-changelog":"^2.5.3","release-it":"^17.11.0","release-it-pnpm":"^4.6.3","typescript":"^5.7.2","vitest":"^2.1.8","@repo/tsconfig":"0.0.0"},"scripts":{"build":"tsc","test":"vitest --coverage","release":"release-it"},"_id":"@astrocreep/sparse-set@1.0.0","homepage":"https://github.com/astrocreep/utils#readme","_integrity":"sha512-ypPFg/NJkSToIjz9uSrQaIEpDVIbhi9Wf58D8U5GSH4TpLjLN/oIoVBqqFBMl+z4sI2bathixkcCkdng6FGaWA==","_resolved":"/private/var/folders/y_/_k9939591zn89qnfc0x0q5wh0000gn/T/6802d91c059faa562092e331672f42de/astrocreep-sparse-set-1.0.0.tgz","_from":"file:astrocreep-sparse-set-1.0.0.tgz","_nodeVersion":"22.12.0","_npmVersion":"10.9.0","dist":{"integrity":"sha512-ypPFg/NJkSToIjz9uSrQaIEpDVIbhi9Wf58D8U5GSH4TpLjLN/oIoVBqqFBMl+z4sI2bathixkcCkdng6FGaWA==","shasum":"b6514be38c9c1305117cb8a11711a57ad2ec62a0","tarball":"https://registry.npmjs.org/@astrocreep/sparse-set/-/sparse-set-1.0.0.tgz","fileCount":6,"unpackedSize":6440,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCeBsmN0YgpyZPmVK2Is1tQveg/fa8KnAysJMrVeutkNQIgQND6gZqK5uTdm7FQ3Sa0G9ERJPtgkCm6x4dODVVQAgU="}]},"_npmUser":{"name":"astrocreep","email":"florian@astrocreep.de"},"directories":{},"maintainers":[{"name":"astrocreep","email":"florian@astrocreep.de"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/sparse-set_1.0.0_1735893658721_0.10071084260227736"},"_hasShrinkwrap":false}},"time":{"created":"2025-01-03T08:40:58.585Z","1.0.0":"2025-01-03T08:40:58.933Z","modified":"2025-01-03T08:40:59.268Z"},"maintainers":[{"name":"astrocreep","email":"florian@astrocreep.de"}],"description":"sparse set implementation","homepage":"https://github.com/astrocreep/utils#readme","keywords":["collection","data-structure","sparse-set","gamedev"],"repository":{"type":"git","url":"git+https://github.com/astrocreep/utils.git"},"author":{"name":"Florian Hofmann"},"bugs":{"url":"https://github.com/astrocreep/utils/issues"},"license":"MIT","readme":"<br />\n<h1 align=\"center\">SparseSet</h3>\n<br />\n\nA sparse set implementation in TypeScript. Sparse set has a fixed size that needs to be provided in the constructor. Order of the values is not guaranteed!\n\n## Installation\n\n```bash\nnpm install @astrocreep/sparse-set\n```\n\n## Usage\n\n```ts\nimport { SparseSet } from '@astrocreep/sparse-set'\n\nconst set = new SparseSet(10)\nset.add(1)\nset.add(2)\nset.add(3)\n\nset.remove(2)\n\nset.has(1) // true\nset.has(2) // false\n\n// iterate over all values\nfor (const value of set) {\n  console.log(value)","readmeFilename":"README.md"}