{"id":23896510,"url":"https://github.com/brecert/trivia-deno","last_synced_at":"2025-11-14T11:02:15.510Z","repository":{"id":57681601,"uuid":"480154981","full_name":"brecert/trivia-deno","owner":"brecert","description":"simple deno module and cli to interact with OpenTDB","archived":false,"fork":false,"pushed_at":"2022-04-15T06:31:31.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-04T22:06:33.252Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/brecert.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":null,"support":null}},"created_at":"2022-04-10T22:25:28.000Z","updated_at":"2022-04-10T22:26:29.000Z","dependencies_parsed_at":"2022-09-14T11:12:51.420Z","dependency_job_id":null,"html_url":"https://github.com/brecert/trivia-deno","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brecert%2Ftrivia-deno","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brecert%2Ftrivia-deno/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brecert%2Ftrivia-deno/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brecert%2Ftrivia-deno/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/brecert","download_url":"https://codeload.github.com/brecert/trivia-deno/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240284930,"owners_count":19777191,"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":[],"created_at":"2025-01-04T16:52:51.304Z","updated_at":"2025-11-14T11:02:10.463Z","avatar_url":"https://github.com/brecert.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Trivia\n\n![@brecert/trivia](https://img.shields.io/npm/v/@brecert/trivia) [![deno module](https://shield.deno.dev/x/trivia_deno)](https://shield.deno.dev/x/trivia_deno)\n\nThis package contains a typed fetch builder and some utils for working with the [OpenTDB](https://opentdb.com/) api.\n\n# Usage\n\nYou can find more info in the [documentation](https://doc.deno.land/https://deno.land/x/trivia_deno/trivia.ts).\n\n```ts\nimport {\n  Encoding,\n  triviaFetch,\n  decodeQuestion,\n} from \"https://deno.land/x/trivia_deno/trivia.ts\";\n\nconst questions = await triviaFetch({\n  amount: 5,\n  encode: Encoding.Base64,\n  token: undefined,\n})\n  .then((res) =\u003e res.json())\n  .then((res) =\u003e res.results.map((res) =\u003e decodeQuestion(res, atob)));\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrecert%2Ftrivia-deno","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrecert%2Ftrivia-deno","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrecert%2Ftrivia-deno/lists"}