{"id":20098641,"url":"https://github.com/pfnet/licensetool","last_synced_at":"2025-07-26T03:08:14.072Z","repository":{"id":150813759,"uuid":"619483647","full_name":"pfnet/licensetool","owner":"pfnet","description":null,"archived":false,"fork":false,"pushed_at":"2025-02-19T05:32:47.000Z","size":165,"stargazers_count":3,"open_issues_count":1,"forks_count":1,"subscribers_count":64,"default_branch":"main","last_synced_at":"2025-05-06T05:43:24.665Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/pfnet.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,"zenodo":null}},"created_at":"2023-03-27T08:27:09.000Z","updated_at":"2023-04-06T01:40:45.000Z","dependencies_parsed_at":"2025-05-06T05:42:47.546Z","dependency_job_id":null,"html_url":"https://github.com/pfnet/licensetool","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/pfnet/licensetool","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pfnet%2Flicensetool","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pfnet%2Flicensetool/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pfnet%2Flicensetool/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pfnet%2Flicensetool/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pfnet","download_url":"https://codeload.github.com/pfnet/licensetool/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pfnet%2Flicensetool/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267109973,"owners_count":24037629,"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","status":"online","status_checked_at":"2025-07-26T02:00:08.937Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-11-13T17:06:08.236Z","updated_at":"2025-07-26T03:08:14.019Z","avatar_url":"https://github.com/pfnet.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"**licensetool** is a license tool for web frontend.\n\n# Usage\n\n* Add licensetool to your NPM dependency:\n\n```console\n$ npm install --save-dev github:pfnet/licensetool\n```\n\n* Output a concatenated license notices of the dependency NPM packages:\n\n```console\n$ npx licensetool format --config licensetool.json\n$ npx licensetool format --config licensetool.json --output csv # or output as csv\n```\n\nWhen using the --output csv option, the generated CSV file will have the following format:\n\n```csv\nlicenseName,packageName\nMIT License,package-a@1.0.0\nMIT License,package-b@1.0.0\n```\n\n# `licensetool.json`\n\n* `packages`\n\nOverride the properties of the specified packages.\nIf some properties or a whole package entry is missing from `packages`, those retrieved by [license-checker-rseidelsohn](https://github.com/RSeidelsohn/license-checker-rseidelsohn) and other libraries are used.\n\n\n* `packages.omit`\n\nOmit this package from the license notices.\n\n```json\n{\n  \"packages\": {\n    \"somepackage@1.0.0\": {\n      \"omit\": true\n    }\n  }\n}\n```\n\n* `packages.licenseId`\n\nSpecify the SPDX ID.\n\n```json\n{\n  \"packages\": {\n    \"somepackage@1.0.0\": {\n      \"licenseId\": \"MIT\"\n    }\n  }\n}\n```\n\n\n* `packages.licenseName`\n\nSpecify the license name.\n\n```json\n{\n  \"packages\": {\n    \"somepackage@1.0.0\": {\n      \"licenseName\": \"Modified MIT\"\n    }\n  }\n}\n```\n\n\n* `packages.licenseFile`\n\nSpecify the file whose contents is the license text.\nIf `null` is given, it invalidates the corresponding property retrieved by license-checker-rseidelsohn, which leads to using the default license notice of the resolved SPDX.\n\n```json\n{\n  \"packages\": {\n    \"somepackage@1.0.0\": {\n      \"licenseFile\": \"path/to/license-notice.txt\"\n    }\n  }\n}\n```\n\n```json\n{\n  \"packages\": {\n    \"somepackage@1.0.0\": {\n      \"licenseFile\": null\n    }\n  }\n}\n```\n\n* `packages.licenseContent`\n\nDirectly specify the content of license notice.\n\n```json\n{\n  \"packages\": {\n    \"somepackage@1.0.0\": {\n      \"licenseContent\": \"Some Package License\\n\\nCopyright (C) 2023 John Doe\\n\\nSome license notice sentences\"\n    }\n  }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpfnet%2Flicensetool","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpfnet%2Flicensetool","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpfnet%2Flicensetool/lists"}