{"id":19371849,"url":"https://github.com/stevecorbett/licencecreditsng","last_synced_at":"2026-05-16T22:35:44.605Z","repository":{"id":203480196,"uuid":"622904161","full_name":"SteveCorbett/LicenceCreditsNg","owner":"SteveCorbett","description":"An Angular app to display the licences of all the dependencies in a project. Adaptable to other frameworks.","archived":false,"fork":false,"pushed_at":"2026-05-07T06:20:58.000Z","size":2445,"stargazers_count":0,"open_issues_count":4,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-05-07T08:22:58.344Z","etag":null,"topics":["angular","licence","license","license-checker"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"0bsd","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SteveCorbett.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-04-03T09:51:19.000Z","updated_at":"2026-05-07T06:19:32.000Z","dependencies_parsed_at":null,"dependency_job_id":"52856b8f-0ab9-4740-b976-6190257bd8d3","html_url":"https://github.com/SteveCorbett/LicenceCreditsNg","commit_stats":null,"previous_names":["stevecorbett/licencecreditsng"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/SteveCorbett/LicenceCreditsNg","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SteveCorbett%2FLicenceCreditsNg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SteveCorbett%2FLicenceCreditsNg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SteveCorbett%2FLicenceCreditsNg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SteveCorbett%2FLicenceCreditsNg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SteveCorbett","download_url":"https://codeload.github.com/SteveCorbett/LicenceCreditsNg/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SteveCorbett%2FLicenceCreditsNg/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33121326,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-16T18:38:32.183Z","status":"ssl_error","status_checked_at":"2026-05-16T18:38:29.903Z","response_time":115,"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","licence","license","license-checker"],"created_at":"2024-11-10T08:20:04.355Z","updated_at":"2026-05-16T22:35:44.591Z","avatar_url":"https://github.com/SteveCorbett.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Licence Credits Ng\n\nThis project demonstrates how to generate and display credits for the third party licences used within an angular application. This code should be easily adaptable to any other JavaScript front end applications, including those built with React. A Vue.Js version of this project can be found at [LicenceCreditsVue](https://github.com/SteveCorbett/LicenceCreditsVue). A JavaScript only version can be found at [LicenceCreditsJs](https://github.com/SteveCorbett/LicenceCreditsJs).\n\nThere are two package.json scripts that are required to extract and format the licence details.\n\nA post-install script runs the [NPM License Checker](https://www.npmjs.com/package/license-checker) package to create a JSON file containing the licence details of all the production dependancies of the project. Note that License Checker may not be able to identify the licences of those packages whose licence files are not available or are in unusual places. More details can be found in the License Checker documentation.\n\nA pre-build script is run to parse the extracted JSON file and place it into the assets directory. This script consolidates multiple entries for the same publisher that have the same licence.\n\nAt run-time, the LicenceCredits component reads this file and displays the details.\n\n## Using This Code\n\nThis code is provide under the 0BSD licence, meaning that you can use, modify and adapt this code as you see fit. Refer to this project's licence file for details.\n\nFirst copy the extractLicences.js file into the root directory of the project. Then add the following two scripts into the package.json file:\n\n```\n    \"prebuild\": \"node extractLicences.js\",\n    \"postinstall\": \"license-checker --production --json \u003e ./licences.json\"\n```\n\nAdd License Checker to the project. If you are using the NPM package manager:\n```\nnpm i license-checker --save-dev\n```\nIf you are using the Yarn package manager:\n```\nyarn add license-checker --dev\n``` \n\nThe first time after installing License Checker you will need to maually run the post install and prebuild processes using:\n```\nnpm run postinstall\nnpm run prebuild\n```\n\nFinally, add the LicenceCredits component into your project, customise the headings, and apply styling as required.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstevecorbett%2Flicencecreditsng","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstevecorbett%2Flicencecreditsng","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstevecorbett%2Flicencecreditsng/lists"}