{"id":15692286,"url":"https://github.com/sebastianroming/license-report-generator","last_synced_at":"2026-03-06T20:03:22.152Z","repository":{"id":51458269,"uuid":"147629372","full_name":"sebastianroming/license-report-generator","owner":"sebastianroming","description":"Saves all dependency licenses (node_modules) to a file","archived":false,"fork":false,"pushed_at":"2025-07-16T14:50:07.000Z","size":309,"stargazers_count":7,"open_issues_count":4,"forks_count":4,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-14T00:56:27.866Z","etag":null,"topics":["hacktoberfest"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/@wbmnky/license-report-generator","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/sebastianroming.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2018-09-06T06:42:57.000Z","updated_at":"2024-09-27T06:36:11.000Z","dependencies_parsed_at":"2024-02-22T12:24:51.488Z","dependency_job_id":"ca966f52-895b-460d-ada7-1f1b02c6ad58","html_url":"https://github.com/sebastianroming/license-report-generator","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/sebastianroming/license-report-generator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sebastianroming%2Flicense-report-generator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sebastianroming%2Flicense-report-generator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sebastianroming%2Flicense-report-generator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sebastianroming%2Flicense-report-generator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sebastianroming","download_url":"https://codeload.github.com/sebastianroming/license-report-generator/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sebastianroming%2Flicense-report-generator/sbom","scorecard":{"id":808603,"data":{"date":"2025-08-11","repo":{"name":"github.com/sebastianroming/license-report-generator","commit":"1cca5444615b6898a1b60bab39ff9dc46d7baf9c"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/4 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":"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":"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":"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":"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/release.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":"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/release.yml:12: update your workflow using https://app.stepsecurity.io/secureworkflow/sebastianroming/license-report-generator/release.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/release.yml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/sebastianroming/license-report-generator/release.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:20: update your workflow using https://app.stepsecurity.io/secureworkflow/sebastianroming/license-report-generator/release.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/release.yml:30: update your workflow using https://app.stepsecurity.io/secureworkflow/sebastianroming/license-report-generator/release.yml/main?enable=pin","Info:   0 out of   2 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   2 third-party GitHubAction 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":"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":"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":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"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":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"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 30 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":2,"reason":"8 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-968p-4wvh-cqc8","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-p6mc-m468-83gw","Warn: Project is vulnerable to: GHSA-vh95-rmgr-6w4m","Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-52f5-9888-hmc6"],"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-23T12:29:40.700Z","repository_id":51458269,"created_at":"2025-08-23T12:29:40.700Z","updated_at":"2025-08-23T12:29:40.700Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30195570,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-06T19:07:06.838Z","status":"ssl_error","status_checked_at":"2026-03-06T18:57:34.882Z","response_time":250,"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":["hacktoberfest"],"created_at":"2024-10-03T18:30:46.820Z","updated_at":"2026-03-06T20:03:22.119Z","avatar_url":"https://github.com/sebastianroming.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @wbmnky/license-report-generator \n[![CI Build](https://github.com/sebastianroming/license-report-generator/actions/workflows/build-package.yml/badge.svg)](https://github.com/sebastianroming/license-report-generator/actions/workflows/build-package.yml)\n\n\u003e finds and stores all dependency licenses\n\n## Install\n```\npnpm add @wbmnky/license-report-generator\n```\n\n\n## Usage\n\n#### Options \n```\n{\n  useDevDependencies: boolean, // defaults to 'false'\n  packagePath: string,         // defaults to 'process.cwd()'\n  packageName: string,         // defaults to 'package.json'\n  depth: number,               // defaults to '1'\n  template: string,            // defaults to the contents of assets/template.txt\n}\n```\n\n### Examples\n\n#### Find licenses and write to file\n```js\nconst licenser = require('@wbmnky/license-report-generator');\n\nconst options = { \n  useDevDependencies: true\n};\n\nreturn licenser.reporter.generate(options)\n                        .then(rep =\u003e rep.write(path.resolve(__dirname, 'output.md')))\n                        .catch((error) =\u003e {\n                          console.log(error);\n                        });\n```\n\n#### Return licenses as plain object\n```js\nconst licenser = require('@wbmnky/license-report-generator');\n\nconst options = { \n  useDevDependencies: true,\n  depth: 2\n};\n\nreturn licenser.reporter.generate(options)\n                        .then(rep =\u003e console.log(rep.plain()))\n                        .catch((error) =\u003e {\n                          console.log(error);\n                        });\n```\n\n#### Use with your own template\n```js\nconst licenser = require('@wbmnky/license-report-generator');\nconst fs       = require('fs');\nconst path     = require('path');\n\nconst options = {\n  template: fs.readFileSync(path.resolve(__dirname, 'template-table.txt'), 'utf8')\n};\n\nreturn licenser.reporter.generate(options)\n                        .then(rep =\u003e rep.write(path.resolve(__dirname, 'output.md')))\n                        .catch((error) =\u003e {\n                          console.log(error);\n                        });\n```\n\n#### Use with default table template\n```js\nconst licenser = require('@wbmnky/license-report-generator');\n\nreturn licenser.reporter.generate({})\n                        .then(rep =\u003e rep.table())\n                        .then(rep =\u003e rep.write(path.resolve(__dirname, 'output.md')))\n                        .catch((error) =\u003e {\n                          console.log(error);\n                        });\n```\n\n#### CLI usage\n```sh\nlicense-report-generator [--table] [--depth Number|Infinity] [--template-dir path/to/templates/] [--template-file template.txt] [--out-dir path/to/output/] [--out-file license-output.md] \n```\n\n##### CLI options\n- `--table` (Default: `false`) - use the default table template\n- `--depth {number}|Infinity` (Default: `1`) - package depth, 0 is current project only\n- `--with-dev-dependencies` (Default: `false`) - whether to include `devDependencies` in the license report or not\n- `--out-dir` (Default: `process.cwd()`) - the output directory where the license file is written to\n- `--out-file` (Default: `license-output.md`) - the output filename of the license file\n- `--template-dir` (Default: `null`) - if you want to use an own template, specify the directory where to find the template\n- `--template-file` (Default: `null`) - if you want to use an own template, specify the filename of the template\n\n\n## Changelog\n#### \u003e 2.2.0\nSubsequent changelogs can be found in the [Releases section](https://github.com/sebastianroming/license-report-generator/releases) of this repository.\n\n#### 2.2.0\n- feat: Added new variable `generatedAt` to use in a template\n- fix: Removed Travis CI, replaced with GitHub Actions (`build` and `publish`)\n- fix: Renamed interfaces and types\n- chore: Replaced `yarn` with `pnpm` as the internal package manager\n- chore: Updated dependencies to latest versions\n\n#### 2.1.0\n- Added CLI option to use as a global installed npm package\n\n#### 2.0.0\n- Removed `bower` support (fallback: [legacy version 0.2.0 @ npm](https://npmjs.com/package/license-report-generator))\n- Return all found packages as plain object, without formatting / writing to file \n- Added second example template for display as a table\n\n## License\n\nMIT © [Sebastian Roming](https://webmonkey.io)\n\n## Credits\nThis is originally based on [ux-license-report](https://github.com/Banno/ux-license-report).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsebastianroming%2Flicense-report-generator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsebastianroming%2Flicense-report-generator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsebastianroming%2Flicense-report-generator/lists"}