{"id":15474779,"url":"https://github.com/moeindev/ng-html-id","last_synced_at":"2026-04-18T01:03:36.234Z","repository":{"id":193744757,"uuid":"688857437","full_name":"moeindev/ng-html-id","owner":"moeindev","description":"ng-html-id is a simple html id generator for angular projects","archived":false,"fork":false,"pushed_at":"2023-09-10T11:10:01.000Z","size":39,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-05T21:34:16.295Z","etag":null,"topics":["angular","angular-cli","html","idgenerator"],"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/moeindev.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":"2023-09-08T08:50:28.000Z","updated_at":"2023-09-09T19:02:23.000Z","dependencies_parsed_at":"2024-12-07T23:24:07.447Z","dependency_job_id":"4fd7de5f-83ad-4eb2-96f8-94939d36e653","html_url":"https://github.com/moeindev/ng-html-id","commit_stats":{"total_commits":32,"total_committers":1,"mean_commits":32.0,"dds":0.0,"last_synced_commit":"f1a4b176aa393b29d07a4965a85a99a3a669a1a7"},"previous_names":["moeindev/ng-html-id"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/moeindev/ng-html-id","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moeindev%2Fng-html-id","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moeindev%2Fng-html-id/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moeindev%2Fng-html-id/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moeindev%2Fng-html-id/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/moeindev","download_url":"https://codeload.github.com/moeindev/ng-html-id/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moeindev%2Fng-html-id/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31952208,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T00:39:45.007Z","status":"ssl_error","status_checked_at":"2026-04-18T00:39:20.671Z","response_time":62,"last_error":"SSL_read: 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":["angular","angular-cli","html","idgenerator"],"created_at":"2024-10-02T03:04:13.470Z","updated_at":"2026-04-18T01:03:36.213Z","avatar_url":"https://github.com/moeindev.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NG-HTML-id\n\nng-html-id is a simple html id generator for angular projects\n\n## Installation\n\nUse the package manager [NPM](https://www.npmjs.com) to install ng-html-id.\n\n```bash\nnpm install --save-dev @moeindeveloper/ng-html-id \n```\n## Configuration\n\nCreate a configuration.json file at the root level of your project, you can add some suffixes to add to the id and define project name\n\n```json\n{\n  \"projectName\": \"my-awesome-project\",\n  \"elementSuffixes\": {\n    \"button\": \"btn\",\n    \"div\": \"container\",\n    \"input\": \"input\",\n    \"p-button\": \"btn\",\n    and any other selector names..\n  }\n}\n\n```\n\n## Usage\n\nRun the command using NPX\n\n```bash\nnpx ng-html-id -C configuration.json\n```\nor\n\n```bash\nnpx ng-html-id --config configuration.json\n```\n\nusing predefined configuration\n\n```bash\nnpx ng-html-id\n```\n\n\n## TODO\n\n- Add support for ngFor and automatically add an id there.\n- Support for custom compoent names.\n- Add tests.\n\n\n\n## Contributing\n\nPull requests are welcome. For major changes, please open an issue first\nto discuss what you would like to change.\n\nPlease make sure to update tests as appropriate.\n\n## License\n\n[MIT](https://choosealicense.com/licenses/mit/)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoeindev%2Fng-html-id","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmoeindev%2Fng-html-id","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoeindev%2Fng-html-id/lists"}