{"id":21133271,"url":"https://github.com/iluha168/jsr-bitset","last_synced_at":"2025-10-05T19:58:55.516Z","repository":{"id":258985834,"uuid":"876046210","full_name":"iluha168/jsr-bitset","owner":"iluha168","description":"A general-purpose interface of a byte array to manipulate individual bits.","archived":false,"fork":false,"pushed_at":"2024-10-22T07:45:01.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-21T06:25:33.015Z","etag":null,"topics":["bitset","jsr","ts","typescript"],"latest_commit_sha":null,"homepage":"https://jsr.io/@iluha168/bitset","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/iluha168.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-10-21T10:03:46.000Z","updated_at":"2025-01-20T11:57:32.000Z","dependencies_parsed_at":"2024-10-22T11:44:51.029Z","dependency_job_id":null,"html_url":"https://github.com/iluha168/jsr-bitset","commit_stats":null,"previous_names":["iluha168/jsr-bitset"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iluha168%2Fjsr-bitset","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iluha168%2Fjsr-bitset/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iluha168%2Fjsr-bitset/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iluha168%2Fjsr-bitset/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iluha168","download_url":"https://codeload.github.com/iluha168/jsr-bitset/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243576701,"owners_count":20313471,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bitset","jsr","ts","typescript"],"created_at":"2024-11-20T06:05:35.862Z","updated_at":"2025-10-05T19:58:50.493Z","avatar_url":"https://github.com/iluha168.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![JSR][jsr-badge]][jsr-url]\n[![Deno][deno-badge]][deno-url]\n[![TypeScript][typescript-badge]][typescript-url]\n[![CI][ci-badge]][ci-url]\n[![License: MIT][license-badge]][license-url]\n\n# BitSet\nA general-purpose interface for a byte array to manipulate individual bits.\n\n## Example\n```ts\nimport { BitSet } from \"jsr:@iluha168/bitset\";\n\nconst bits = new BitSet(new ArrayBuffer(2))\n\nbits.set(2, 1)\nbits.set(3, 1)\nbits.invert(4)\n\nconsole.log(`${bits}`)\n// Expected output: \"BitSet(16) { 0b00011100 00000000 }\"\n\nconsole.log(bits.get(4))\n// Expected output: 1\n\nconsole.log(bits.get(1))\n// Expected output: 0\n\nconsole.log(Array.from(bits).join(''))\n// Expected output: 0011100000000000\n\nconsole.log(Array.from(bits.entries().take(3)))\n// Expected output: [ [ 0, 0 ], [ 1, 0 ], [ 2, 1 ] ]\n```\n\n[jsr-badge]: https://jsr.io/badges/@iluha168/bitset?style=flat-square\n[jsr-url]: https://jsr.io/@iluha168/bitset\n\n[deno-badge]: https://img.shields.io/badge/Deno-000000?logo=Deno\u0026logoColor=FFF\u0026style=flat-square\n[deno-url]: https://deno.com/\n\n[typescript-badge]: https://img.shields.io/badge/TypeScript-3178C6?logo=TypeScript\u0026logoColor=FFF\u0026style=flat-square\n[typescript-url]: https://www.typescriptlang.org/\n\n[ci-badge]: https://img.shields.io/github/actions/workflow/status/iluha168/jsr-bitset/publish.yml?logo=github\u0026style=flat-square\n[ci-url]: https://github.com/iluha168/jsr-bitset/actions/workflows/publish.yml\n\n[license-badge]: https://img.shields.io/badge/License-MIT-blue.svg?style=flat-square\n[license-url]: https://wei.mit-license.org","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Filuha168%2Fjsr-bitset","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Filuha168%2Fjsr-bitset","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Filuha168%2Fjsr-bitset/lists"}