{"id":32117653,"url":"https://github.com/ocpu/typed-flags-deno","last_synced_at":"2026-05-14T21:32:58.745Z","repository":{"id":62422118,"uuid":"369224561","full_name":"ocpu/typed-flags-deno","owner":"ocpu","description":"Strictly type your program flags in deno","archived":false,"fork":false,"pushed_at":"2021-10-18T07:33:19.000Z","size":10,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-02-19T04:40:11.515Z","etag":null,"topics":["deno","flags","module"],"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/ocpu.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}},"created_at":"2021-05-20T13:50:43.000Z","updated_at":"2023-06-12T19:01:03.000Z","dependencies_parsed_at":"2022-11-01T17:31:25.091Z","dependency_job_id":null,"html_url":"https://github.com/ocpu/typed-flags-deno","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/ocpu/typed-flags-deno","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ocpu%2Ftyped-flags-deno","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ocpu%2Ftyped-flags-deno/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ocpu%2Ftyped-flags-deno/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ocpu%2Ftyped-flags-deno/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ocpu","download_url":"https://codeload.github.com/ocpu/typed-flags-deno/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ocpu%2Ftyped-flags-deno/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32825603,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-08T08:22:46.396Z","status":"online","status_checked_at":"2026-05-09T02:00:06.633Z","response_time":123,"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":["deno","flags","module"],"created_at":"2025-10-20T16:55:20.951Z","updated_at":"2026-05-14T21:32:58.726Z","avatar_url":"https://github.com/ocpu.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Typed Flags for Deno\n\nThis is a simple module to to declaratively set the type of the flags you accept. It uses the std/flags under the hood so parsing of flags is handled by it and type ensuring is provided by this module. All parts of the flag definition are strictly type defined (you event get some auto completion at places).\n\n```typescript\nimport { parseFlags } from 'https://deno.land/x/typed_flags@v1.0.1/mod.ts'\n\nconst { _: args, ...flags } = parseFlags({\n  help: Boolean, // Use either of Boolean, String, or Number constructors to define your type\n  port: { // Make the definition an object if you want to specify more than type\n    type: Number,\n    default: 3000, // Default values must be in the type you specify\n    alias: 'p', // Define an alias or an array of them\n  },\n  name: String,\n  h: 'help', // Another way of specifying an alias to a command (these can be auto completed)\n}/*, \u003carray of arguments default Deno.args\u003e*/)\n\ntype MyFlags = typeof flags // { help: boolean, post: number, name: string | undefined }\ntype MyArgs = typeof args // string[]\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Focpu%2Ftyped-flags-deno","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Focpu%2Ftyped-flags-deno","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Focpu%2Ftyped-flags-deno/lists"}