{"id":16486053,"url":"https://github.com/roziscoding/wise-bit","last_synced_at":"2026-06-10T12:31:06.680Z","repository":{"id":207393335,"uuid":"719135176","full_name":"roziscoding/wise-bit","owner":"roziscoding","description":"Bitwise flag manager written in TypeScript.","archived":false,"fork":false,"pushed_at":"2023-11-15T14:43:15.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-04-26T02:19:39.160Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/roziscoding.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}},"created_at":"2023-11-15T14:27:37.000Z","updated_at":"2023-11-15T14:43:24.000Z","dependencies_parsed_at":"2023-11-15T15:51:35.946Z","dependency_job_id":null,"html_url":"https://github.com/roziscoding/wise-bit","commit_stats":null,"previous_names":["roziscoding/wise-bit"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/roziscoding/wise-bit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roziscoding%2Fwise-bit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roziscoding%2Fwise-bit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roziscoding%2Fwise-bit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roziscoding%2Fwise-bit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/roziscoding","download_url":"https://codeload.github.com/roziscoding/wise-bit/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roziscoding%2Fwise-bit/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34153482,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-10T02:00:07.152Z","response_time":89,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2024-10-11T13:28:12.860Z","updated_at":"2026-06-10T12:31:06.660Z","avatar_url":"https://github.com/roziscoding.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Wise Bit\n\n## Description\n\nThis project provides a TypeScript class `Flags` that allows you to manage a set of flags.\nFlags can be enabled, disabled, and checked if they are enabled.\nThe class also provides a map of the flags and their current states, and the value of the flags.\n\n## Usage\n\nFirst, import the `Flags` class from `mod.ts`.\n\n```typescript\nimport { Flags } from './mod.ts';\n```\n\nThen, you can create a new instance of `Flags` with your known flags.\n\n```typescript\nconst knownFlags = { flag1: 1, flag2: 2, flag3: 4 };\nconst flags = new Flags(knownFlags);\n```\n\nYou can enable and disable flags using the `enable` and `disable` methods.\n\n```typescript\nflags.enable(knownFlags.flag1);\nflags.disable(knownFlags.flag2);\n```\n\nYou can check if a flag is enabled using the `isEnabled` method.\n\n```typescript\nconsole.log(flags.isEnabled(knownFlags.flag1)); // true\nconsole.log(flags.isEnabled(knownFlags.flag2)); // false\n```\n\nYou can get a map of the flags and their current states using the `map` getter.\n\n```typescript\nconsole.log(flags.map); // { flag1: true, flag2: false, flag3: false }\n```\n\nYou can get the value of the flags using the `value` getter.\n\n```typescript\nconsole.log(flags.value); // 1\n```\n\n## Contributing\n\nInstructions on how to contribute to your project.\n\n## License\n\nSee [LICENSE](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froziscoding%2Fwise-bit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Froziscoding%2Fwise-bit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froziscoding%2Fwise-bit/lists"}