{"id":18743259,"url":"https://github.com/anthonybudd/if","last_synced_at":"2026-01-29T14:11:56.055Z","repository":{"id":130731668,"uuid":"546225564","full_name":"anthonybudd/If","owner":"anthonybudd","description":"Chainable If syntax","archived":false,"fork":false,"pushed_at":"2022-10-05T19:03:48.000Z","size":17,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-02T19:21:35.209Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"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/anthonybudd.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":"2022-10-05T18:39:39.000Z","updated_at":"2022-10-05T18:39:39.000Z","dependencies_parsed_at":null,"dependency_job_id":"db8a7733-16a4-45d7-914e-3a7d82f834e3","html_url":"https://github.com/anthonybudd/If","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/anthonybudd/If","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anthonybudd%2FIf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anthonybudd%2FIf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anthonybudd%2FIf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anthonybudd%2FIf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/anthonybudd","download_url":"https://codeload.github.com/anthonybudd/If/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anthonybudd%2FIf/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28879088,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-29T10:31:27.438Z","status":"ssl_error","status_checked_at":"2026-01-29T10:31:01.017Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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-11-07T16:10:48.202Z","updated_at":"2026-01-29T14:11:56.025Z","avatar_url":"https://github.com/anthonybudd.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# If\nA chainabale if library for JavaScript.\n\nThis is totally pointless, but I prefur chain syntax over control-structure syntax.\n\n### Example\n```js\nconst If = require('./index');\n\nconst myVar = (1 === 1);\n\nconst result = new If(myVar)\n    .then(() =\u003e ('True'))\n    .elseif((1 === 0), () =\u003e ('elesif 1'))\n    .else(() =\u003e ('False'))\n    .do();\n\nconsole.log(result);\n```\n\n### Translation (control-structure syntax)\n```js\nconst myVar = (1 === 1);\n\nif (myVar) {\n    console.log('True');\n} else if (1 === 0) {\n    console.log('elesif 1');\n} else {\n    console.log('False');\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanthonybudd%2Fif","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanthonybudd%2Fif","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanthonybudd%2Fif/lists"}