{"id":28092446,"url":"https://github.com/claeusdev/launch-lever","last_synced_at":"2025-07-25T11:12:27.712Z","repository":{"id":228664900,"uuid":"774591675","full_name":"claeusdev/launch-lever","owner":"claeusdev","description":"Manage your feature toggles quickly","archived":false,"fork":false,"pushed_at":"2024-12-26T09:35:28.000Z","size":162,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-30T09:07:44.160Z","etag":null,"topics":["javascript","nodejs","react","reactjs","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/claeusdev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-03-19T20:23:06.000Z","updated_at":"2024-12-26T09:35:31.000Z","dependencies_parsed_at":"2024-03-19T22:04:01.102Z","dependency_job_id":"ef14e7e7-ab4d-4374-b968-309e36bc464b","html_url":"https://github.com/claeusdev/launch-lever","commit_stats":null,"previous_names":["claeusdev/launch-lever"],"tags_count":2,"template":false,"template_full_name":"claeusdev/ts-lib-starter","purl":"pkg:github/claeusdev/launch-lever","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/claeusdev%2Flaunch-lever","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/claeusdev%2Flaunch-lever/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/claeusdev%2Flaunch-lever/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/claeusdev%2Flaunch-lever/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/claeusdev","download_url":"https://codeload.github.com/claeusdev/launch-lever/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/claeusdev%2Flaunch-lever/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266997204,"owners_count":24018934,"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","status":"online","status_checked_at":"2025-07-25T02:00:09.625Z","response_time":70,"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":["javascript","nodejs","react","reactjs","typescript"],"created_at":"2025-05-13T13:15:22.359Z","updated_at":"2025-07-25T11:12:27.703Z","avatar_url":"https://github.com/claeusdev.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Launch-Lever \n\n[![npm version](https://badge.fury.io/js/launch-lever.svg)](https://www.npmjs.com/package/launch-lever)\n\nThe easiest way to manage feature toggles in JS/TS applications.\n\n### Features\n- Currently only supports managing feature toggles using JSON\n- Should be super fast 💨\n\n### About\n\n`launch-lever` is a simple library for managing your feature toggles. \n\nlaunch-lever is for you if you want:\n\n- A simple locally managed feature toggle.\n- Something so simple you don't need to know how to make network calls to use.\n- Build your toggle JSON and push the launch button.\n\n### Installation\n\nTo add `launch-lever` to your project:\n\n```js\nnpm install launch-lever\n```\n\n```js\nyarn add launch-lever\n```\n\n### Usage\n\nlaunch-lever exports a class `LaunchLever` together with some types for `Toggle`.\n\n```js\nimport { Toggle, LaunchLever, isOn } from \"launch-lever\";\n\n// export interface Toggle {\n//   name: string;\n//   description: string;\n//   status: \"on\" | \"off\";\n// }\n\nexport const flags: Toggle[] = [\n    {\n        name: \"pfx_123\",\n        description: \"A very simple test case\",\n        status: \"on\"\n    },\n    {\n        name: \"pfx_1255\",\n        description: \"A very simple test case\",\n        status: \"off\"\n    }\n]\n```\n\nPass your JSON to the constructor.\n\n```ts\nconst { pfx_123, pfx_1255 } = new LaunchLever(flags).flags\n```\n\nUse your toggle names by simply checking if they're turned `on` with the very handy `isOn` function.\n\n```ts\nif(isOn(pfx_123)) {\n//show some button\n}\n```\n\n### Contributing and Support\n\nIf you're interested in contributing or supporting. Just fork, open a PR.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclaeusdev%2Flaunch-lever","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fclaeusdev%2Flaunch-lever","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclaeusdev%2Flaunch-lever/lists"}