{"id":18658589,"url":"https://github.com/king-prawns/webpack-tree-dependency","last_synced_at":"2026-05-01T06:34:00.384Z","repository":{"id":143928447,"uuid":"121143971","full_name":"king-prawns/webpack-tree-dependency","owner":"king-prawns","description":"A Webpack plugin that creates a dependency tree","archived":false,"fork":false,"pushed_at":"2018-02-18T09:01:53.000Z","size":18,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-03-12T02:49:53.065Z","etag":null,"topics":["dependency-tree","plugin","webpack"],"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/king-prawns.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}},"created_at":"2018-02-11T16:42:27.000Z","updated_at":"2023-03-10T09:04:27.000Z","dependencies_parsed_at":null,"dependency_job_id":"6551817f-9f30-4ed7-87a7-b3e7f66d90b3","html_url":"https://github.com/king-prawns/webpack-tree-dependency","commit_stats":{"total_commits":23,"total_committers":1,"mean_commits":23.0,"dds":0.0,"last_synced_commit":"8b119633953d4b42ab3231a2bd779fc8b605dd43"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/king-prawns/webpack-tree-dependency","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/king-prawns%2Fwebpack-tree-dependency","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/king-prawns%2Fwebpack-tree-dependency/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/king-prawns%2Fwebpack-tree-dependency/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/king-prawns%2Fwebpack-tree-dependency/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/king-prawns","download_url":"https://codeload.github.com/king-prawns/webpack-tree-dependency/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/king-prawns%2Fwebpack-tree-dependency/sbom","scorecard":{"id":560663,"data":{"date":"2025-08-11","repo":{"name":"github.com/king-prawns/webpack-tree-dependency","commit":"8b119633953d4b42ab3231a2bd779fc8b605dd43"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"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":"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":"Code-Review","score":0,"reason":"Found 0/23 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":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"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":"Dangerous-Workflow","score":-1,"reason":"no workflows found","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":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"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":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"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":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"}}]},"last_synced_at":"2025-08-20T13:34:34.777Z","repository_id":143928447,"created_at":"2025-08-20T13:34:34.777Z","updated_at":"2025-08-20T13:34:34.777Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32487566,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"online","status_checked_at":"2026-05-01T02:00:05.856Z","response_time":64,"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":["dependency-tree","plugin","webpack"],"created_at":"2024-11-07T07:33:44.094Z","updated_at":"2026-05-01T06:34:00.369Z","avatar_url":"https://github.com/king-prawns.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Webpack dependency tree\n\n[![NPM](https://nodei.co/npm/webpack-tree-dependency.png?compact=true)](https://nodei.co/npm/webpack-tree-dependency/)\n\nThis a [webpack](https://webpack.js.org/) plugin that creates a dependency tree.\n\n## Install\n\n```bash\nnpm install --save-dev webpack-tree-dependency\n```\n\n## Usage\n\n**webpack.dev.config.js**\n\n```js\nvar TreeWebpackPlugin = require('webpack-tree-dependency');\n\nmodule.exports = {\n  plugins: [new TreeWebpackPlugin()]\n};\n```\n\nAfter starting the dev server you will be able to find the output file at:\n\n`localhost:port/filename.html` (or .json)\n\n## Options\n\n|Name|Type|Default|Description|\n|:--:|:--:|:-----:|:----------|\n|**`directory`**|`{String}`| `'src'`|relative path to src folder|\n|**`extensions`**|`{Array\u003cString\u003e}`|`['js']`|Files to include|\n|**`filename`**|`{String}`|`'tree'`|output filename|\n|**`emitHtml`**|`{Boolean}`|`true`|emit HTML or JSON|\n\n\n```js\nnew TreeWebpackPlugin({\n    directory: 'path/to/src',\n    extensions: ['js', 'html'],\n    filename: 'map',\n    emitHtml: true\n})\n```\n\n## Example\n\n**.json**\n\n```json\n{\n  \"type\": \"js\",\n  \"path\": \"root\",\n  \"name\": \"main\",\n  \"children\": [\n    {\n      \"type\": \"js\",\n      \"path\": \"/components/comp-one\",\n      \"name\": \"index\",\n      \"children\": [\n        {\n          \"type\": \"js\",\n          \"path\": \"/components/comp-one/libs\",\n          \"name\": \"awesome-lib\",\n          \"children\": [],\n          \"recursive\": true\n        },\n        {\n          \"type\": \"html\",\n          \"path\": \"/components/comp-one\",\n          \"name\": \"template\",\n          \"children\": [],\n          \"recursive\": false\n        },\n        {}\n      ],\n      \"recursive\": false\n    },\n    {\n      \"type\": \"js\",\n      \"path\": \"/components/comp-two\",\n      \"name\": \"index\",\n      \"children\": [],\n      \"recursive\": false\n    }\n  ],\n  \"recursive\": false\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fking-prawns%2Fwebpack-tree-dependency","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fking-prawns%2Fwebpack-tree-dependency","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fking-prawns%2Fwebpack-tree-dependency/lists"}