{"id":23143594,"url":"https://github.com/xieyuheng/coupler","last_synced_at":"2025-04-04T12:14:38.970Z","repository":{"id":57684684,"uuid":"493200169","full_name":"xieyuheng/coupler","owner":"xieyuheng","description":"Simple tools for doing dependency injection through constructors.","archived":false,"fork":false,"pushed_at":"2022-07-26T19:59:45.000Z","size":133,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-10T21:04:39.408Z","etag":null,"topics":["coupler","coupling","dependency-injection"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/xieyuheng.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE-OF-CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-05-17T10:21:47.000Z","updated_at":"2022-05-17T10:33:05.000Z","dependencies_parsed_at":"2022-09-15T06:07:49.756Z","dependency_job_id":null,"html_url":"https://github.com/xieyuheng/coupler","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xieyuheng%2Fcoupler","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xieyuheng%2Fcoupler/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xieyuheng%2Fcoupler/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xieyuheng%2Fcoupler/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xieyuheng","download_url":"https://codeload.github.com/xieyuheng/coupler/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247174467,"owners_count":20896078,"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":["coupler","coupling","dependency-injection"],"created_at":"2024-12-17T15:13:49.356Z","updated_at":"2025-04-04T12:14:38.945Z","avatar_url":"https://github.com/xieyuheng.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Coupler\n\nSimple tools for doing [dependency injection through constructors](https://martinfowler.com/articles/injection.html#FormsOfDependencyInjection).\n\nThe main class of this package is called `Coupler`,\nbecause it can depend on everything,\nso everything do **NOT** need to depend on each other.\n\nThus a coupler should only be used at the **outmost parts of your application**,\nand often we should only use one coupler for one application.\n\nNotes:\n\n- This pattern is also called [\"Service Container\"](https://laravel.com/docs) in Laravel.\n\n## Installation\n\n```\nnpm install @xieyuheng/coupler\n```\n\n## Development\n\n```\nnpm install    // Install dependencies\nnpm run build  // Compile `src/` to `lib/`\nnpm run watch  // Watch the compilation\nnpm run test   // Run test\n```\n\n## Contributions\n\n\u003e Be polite, do not bring negative emotion to others.\n\n- [TODO.md](TODO.md)\n- [STYLE-GUIDE.md](STYLE-GUIDE.md)\n- [CODE-OF-CONDUCT.md](CODE-OF-CONDUCT.md)\n- When contributing, add yourself to [AUTHORS](AUTHORS)\n\n## License\n\n- [GPLv3](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxieyuheng%2Fcoupler","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxieyuheng%2Fcoupler","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxieyuheng%2Fcoupler/lists"}