{"id":15019406,"url":"https://github.com/yrtimid/angularjs-ts-class-annotate","last_synced_at":"2026-02-03T14:06:29.185Z","repository":{"id":57151761,"uuid":"247452152","full_name":"yrtimiD/angularjs-ts-class-annotate","owner":"yrtimiD","description":"AngularJS Typescript class-only annotation library","archived":false,"fork":false,"pushed_at":"2023-10-02T22:55:56.000Z","size":19,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-11T00:54:14.645Z","etag":null,"topics":["angularjs","annotate","nodejs","typescript"],"latest_commit_sha":null,"homepage":null,"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/yrtimiD.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":"2020-03-15T11:22:16.000Z","updated_at":"2020-03-24T11:18:21.000Z","dependencies_parsed_at":"2024-09-26T18:21:35.657Z","dependency_job_id":"6d5eadd8-3f75-4c4d-bbe9-248fa4915b6d","html_url":"https://github.com/yrtimiD/angularjs-ts-class-annotate","commit_stats":{"total_commits":12,"total_committers":1,"mean_commits":12.0,"dds":0.0,"last_synced_commit":"73bdf03698021b19229fcabdf321e2d1aecee9a1"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/yrtimiD/angularjs-ts-class-annotate","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yrtimiD%2Fangularjs-ts-class-annotate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yrtimiD%2Fangularjs-ts-class-annotate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yrtimiD%2Fangularjs-ts-class-annotate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yrtimiD%2Fangularjs-ts-class-annotate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yrtimiD","download_url":"https://codeload.github.com/yrtimiD/angularjs-ts-class-annotate/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yrtimiD%2Fangularjs-ts-class-annotate/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29047197,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-03T10:09:22.136Z","status":"ssl_error","status_checked_at":"2026-02-03T10:09:16.814Z","response_time":96,"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":["angularjs","annotate","nodejs","typescript"],"created_at":"2024-09-24T19:53:26.359Z","updated_at":"2026-02-03T14:06:26.108Z","avatar_url":"https://github.com/yrtimiD.png","language":"TypeScript","readme":"# angularjs-ts-class-annotate\nAdds AngularJS dependency annotations for typescript classes\n\n## Important notes\n* Supports typescript classes only.\n* Adds AngularJS $inject statement for constructors in all classes regardless if they are registered in the angular injector or not.\n* Existing $inject statements are totally ignored.\n\n## Usage example\n```sh\nnpm install angularjs-ts-class-annotate\n```\n[typescript](https://www.npmjs.com/package/typescript) is a peer dependency, make sure to install it (tested with v3 only):\n```sh\nnpm install typescript@3\n```\n\nand run:\n```js\nconst fs = require(\"fs\");\nconst annotateTs = require(\"angularjs-ts-class-annotate\");\n\nvar fileContent = fs.readFileSync(\"some-class.ts\", \"utf8\");\nfileContent = annotateTs(fileContent);\nfs.writeFileSync(\"some-class.annotated.ts\", fileContent, \"utf8\");\n```\n\n### Before: original some-class.ts\n```typescript\nclass Class1 {\n\tconstructor(private $log: ng.ILogService, private $window: ng.IWindowService) {\n\t}\n}\n```\n### After: annotated some-class.annotated.ts\n```typescript\nclass Class1 {\nstatic $inject = [\"$log\",\"$window\"];\n\tconstructor(private $log: ng.ILogService, private $window: ng.IWindowService) {\n\t}\n}\n```\n\n## Building\n```\nnpm i\nnpm run build\nnpm run demo\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyrtimid%2Fangularjs-ts-class-annotate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyrtimid%2Fangularjs-ts-class-annotate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyrtimid%2Fangularjs-ts-class-annotate/lists"}