{"id":46756836,"url":"https://github.com/inexio/angular-build-info","last_synced_at":"2026-03-09T21:34:51.578Z","repository":{"id":57178102,"uuid":"223629439","full_name":"inexio/angular-build-info","owner":"inexio","description":"🛠 A CLI to generate an easily importable `build.ts` file containing various details about the application build","archived":false,"fork":false,"pushed_at":"2023-07-24T16:36:22.000Z","size":126,"stargazers_count":28,"open_issues_count":6,"forks_count":8,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-10-19T20:42:00.714Z","etag":null,"topics":["angular","angular2","build","build-tool","cli"],"latest_commit_sha":null,"homepage":"https://npmjs.com/angular-build-info","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/inexio.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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":"2019-11-23T17:44:46.000Z","updated_at":"2024-12-13T21:52:24.000Z","dependencies_parsed_at":"2024-06-20T23:27:58.374Z","dependency_job_id":"202bc5f6-a482-4597-8c45-cc584ddacd0f","html_url":"https://github.com/inexio/angular-build-info","commit_stats":{"total_commits":34,"total_committers":4,"mean_commits":8.5,"dds":"0.20588235294117652","last_synced_commit":"9b6bdcba743431cc99614563f1c0532c59cddef5"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/inexio/angular-build-info","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inexio%2Fangular-build-info","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inexio%2Fangular-build-info/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inexio%2Fangular-build-info/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inexio%2Fangular-build-info/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/inexio","download_url":"https://codeload.github.com/inexio/angular-build-info/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inexio%2Fangular-build-info/sbom","scorecard":{"id":487798,"data":{"date":"2025-08-11","repo":{"name":"github.com/inexio/angular-build-info","commit":"9b6bdcba743431cc99614563f1c0532c59cddef5"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.5,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/build.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/inexio/angular-build-info/build.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/inexio/angular-build-info/build.yml/master?enable=pin","Warn: npmCommand not pinned by hash: .github/workflows/build.yml:21","Info:   0 out of   2 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 npmCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Code-Review","score":0,"reason":"Found 1/29 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE.md:0","Info: FSF or OSI recognized license: MIT License: LICENSE.md:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 2 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":0,"reason":"11 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-93q8-gq69-wqmw","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-qrmc-fj45-qfc2","Warn: Project is vulnerable to: GHSA-43f8-2h32-f4cj","Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3","Warn: Project is vulnerable to: GHSA-vh95-rmgr-6w4m","Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h","Warn: Project is vulnerable to: GHSA-hj48-42vr-x3v9","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-4wf5-vphf-c2xc","Warn: Project is vulnerable to: GHSA-7p7h-4mm5-852v"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-19T18:14:42.960Z","repository_id":57178102,"created_at":"2025-08-19T18:14:42.960Z","updated_at":"2025-08-19T18:14:42.960Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30312182,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-09T20:05:46.299Z","status":"ssl_error","status_checked_at":"2026-03-09T19:57:04.425Z","response_time":61,"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":["angular","angular2","build","build-tool","cli"],"created_at":"2026-03-09T21:34:50.951Z","updated_at":"2026-03-09T21:34:51.570Z","avatar_url":"https://github.com/inexio.png","language":"TypeScript","readme":"![](https://i.4da.ms/build_info.png)\n\n\u003cp align=\"center\"\u003e\n    \u003ca\u003e\u003cimg src=\"https://github.com/inexio/angular-build-info/workflows/build/badge.svg\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\u003cp align=\"center\"\u003e\n    \u003ca\u003e\u003cimg src=\"https://img.shields.io/npm/v/angular-build-info\"\u003e\u003c/a\u003e\n    \u003ca\u003e\u003cimg src=\"https://img.shields.io/badge/node-v8%2B-brightgreen\"\u003e\u003c/a\u003e\n    \u003ca\u003e\u003cimg src=\"https://img.shields.io/npm/dt/angular-build-info\"\u003e\u003c/a\u003e\n    \u003ca\u003e\u003cimg src=\"https://img.shields.io/github/issues/inexio/angular-build-info\"\u003e\u003c/a\u003e\n    \u003ca\u003e\u003cimg src=\"https://img.shields.io/github/issues-pr/inexio/angular-build-info\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n## Description\n\n**`angular-build-info`** is a command line interface to collect information about your current build. It compiles information such as the timestamp when the application was built, the current git user, the hash of the latest commit and the current version from inside your projects `package.json` file.\n\nExample output of the CLI looks as follows:\n\n```typescript\n// Angular build information, automatically generated by `4dams/angular-build-info`\n\nexport const buildInfo = {\n    user: \"Juri Adams\",\n    hash: \"1e872b5\",\n    version: \"1.1.4\",\n    timestamp: \"November 15, 2019 16:37:35\",\n};\n```\n\n## Installation and Usage\n\nInstallation is pretty easy:\n\n```sh\nnpm i -g angular-build-info\n```\n\nRunning the script with the `--init` flag (`angular-build-info --init`) then produces a `build.ts` file inside your Angular projects `src/` folder. You can then proceed to import this file inside your Angular application. An example making use of this information can be found below.\n\nAnother important thing to use this tool effectively is to update your `package.json` scripts. Below is an example of what your `build` or `deploy` script might look like.\n\n```json\n{\n    \"scripts\": {\n        \"build\": \"angular-build-info \u0026\u0026 ng build\",\n        \"deploy\": \"angular-build-info \u0026\u0026 ng build --prod \u0026\u0026 ./deploy\"\n    }\n}\n```\n\nIf you now run any of these commands, information about the current build will be saved inside the previously mentioned `build.ts` file.\n\n## Implementing in Angular\n\nBelow is an example of what your `app.component.ts` might look like after implementing the information from inside the `build.ts` file.\n\n```typescript\nimport { Component } from \"@angular/core\";\nimport { buildInfo } from \"../build\";\nimport { environment } from \"../environments/environment\";\n\n@Component({\n    selector: \"app-root\",\n    templateUrl: \"./app.component.html\",\n    styleUrls: [\"./app.component.css\"],\n})\nexport class AppComponent {\n    constructor() {\n        console.log(\n            `\\n%cBuild Info:\\n\\n` +\n                `%c ❯ Environment: %c${environment.production ? \"production 🏭\" : \"development 🚧\"}\\n` +\n                `%c ❯ Build Version: ${buildInfo.version}\\n` +\n                ` ❯ Build Timestamp: ${buildInfo.timestamp}\\n` +\n                ` ❯ Build Message: %c${buildInfo.message || \"\u003cno message\u003e\"}\\n`,\n            \"font-size: 14px; color: #7c7c7b;\",\n            \"font-size: 12px; color: #7c7c7b\",\n            environment.production ? \"font-size: 12px; color: #95c230;\" : \"font-size: 12px; color: #e26565;\",\n            \"font-size: 12px; color: #7c7c7b\",\n            \"font-size: 12px; color: #bdc6cf\",\n        );\n    }\n}\n```\n\nThis is what the previous code will output in the browser console once you open the app:\n\n![](https://i.4da.ms/build_info_example.png)\n\n## Authors\n\n-   **Juri Adams** - _Initial Work_ - [@4dams](https://github.com/4dams)\n\n## License\n\nThis project is underlying the MIT-License. For more information, take a look at this projects [LICENSE.md](LICENSE.md) file.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finexio%2Fangular-build-info","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finexio%2Fangular-build-info","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finexio%2Fangular-build-info/lists"}