{"id":20284664,"url":"https://github.com/ovesco/diosaur","last_synced_at":"2025-04-11T08:33:42.609Z","repository":{"id":40765937,"uuid":"267810560","full_name":"ovesco/diosaur","owner":"ovesco","description":"A dependency injection library for Deno and Node","archived":false,"fork":false,"pushed_at":"2022-12-11T08:44:08.000Z","size":2919,"stargazers_count":3,"open_issues_count":12,"forks_count":3,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-25T06:04:52.298Z","etag":null,"topics":["deno","dependency-injection","nodejs","service-injection","typescript"],"latest_commit_sha":null,"homepage":"https://ovesco.github.io/diosaur/","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/ovesco.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":"2020-05-29T08:49:13.000Z","updated_at":"2024-10-24T08:27:02.000Z","dependencies_parsed_at":"2023-01-26T19:31:43.231Z","dependency_job_id":null,"html_url":"https://github.com/ovesco/diosaur","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ovesco%2Fdiosaur","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ovesco%2Fdiosaur/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ovesco%2Fdiosaur/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ovesco%2Fdiosaur/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ovesco","download_url":"https://codeload.github.com/ovesco/diosaur/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248361678,"owners_count":21090962,"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":["deno","dependency-injection","nodejs","service-injection","typescript"],"created_at":"2024-11-14T14:20:56.825Z","updated_at":"2025-04-11T08:33:42.590Z","avatar_url":"https://github.com/ovesco.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Diosaur\n#### A small dependency injection for Node and Deno.\n\nDiosaur is a small dependency injection solution written in Typescript for Deno and node which aims at making you write the minimum\nof code, avoiding obvious bindings and other repetitive stuff. It internally depends on `reflect-metadata` to guess\nthe maximum indications out of your code, but still allows you for finer definition of your services.\n\n## Please note that you require Typescript to use this library, as it makes usage of Annotations to work.\n\n## Example\n```typescript\nimport 'reflect-metadata';\nimport { Service, Parameter, Inject, setParameter, getContainer } from 'diosaur';\n\n@Service()\nclass Doggo {\n    constructor(@Parameter('doggoName') private name: string) {}\n\n    bark() {\n        return this.name.toUpperCase();\n    }\n}\n\n@Service()\nclass JonSnow {\n\n    @Inject()\n    private doggo: Doggo;\n\n    yell() {\n        return `I'm Jon with my doggo ${this.doggo.bark()} !`;\n    }\n}\n\nsetParameter('doggoName', 'Ghost');\n\nconst container = await getContainer();\nconst jon = container.get(JonSnow);\nconsole.log(jon.yell());\n```\n\n## Documentation\nAll documentation for the library can be found here.\n[Documentation](https://ovesco.github.io/diosaur/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fovesco%2Fdiosaur","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fovesco%2Fdiosaur","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fovesco%2Fdiosaur/lists"}