{"id":28684925,"url":"https://github.com/node-modules/shameimaru","last_synced_at":"2026-03-10T11:06:42.440Z","repository":{"id":53733777,"uuid":"136875184","full_name":"node-modules/shameimaru","owner":"node-modules","description":"Shameimaru Aya likes to traverse node_modules and capture the tree.","archived":false,"fork":false,"pushed_at":"2021-03-17T09:13:06.000Z","size":1827,"stargazers_count":26,"open_issues_count":1,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-11-21T01:15:49.150Z","etag":null,"topics":["dependencies-tree","shameimaru","traverser"],"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/node-modules.png","metadata":{"files":{"readme":"README.md","changelog":"History.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-06-11T04:37:46.000Z","updated_at":"2022-09-21T05:29:17.000Z","dependencies_parsed_at":"2022-09-26T20:01:17.577Z","dependency_job_id":null,"html_url":"https://github.com/node-modules/shameimaru","commit_stats":null,"previous_names":["xadillax/shameimaru"],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/node-modules/shameimaru","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/node-modules%2Fshameimaru","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/node-modules%2Fshameimaru/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/node-modules%2Fshameimaru/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/node-modules%2Fshameimaru/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/node-modules","download_url":"https://codeload.github.com/node-modules/shameimaru/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/node-modules%2Fshameimaru/sbom","scorecard":{"id":692043,"data":{"date":"2025-08-11","repo":{"name":"github.com/node-modules/shameimaru","commit":"94327243db3e5a7701b2879a745af0c189b51dd0"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.2,"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":"Code-Review","score":1,"reason":"Found 2/11 approved changesets -- score normalized to 1","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":"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":-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":"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":"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":"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":"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"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 3 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":"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"}}]},"last_synced_at":"2025-08-22T02:31:26.315Z","repository_id":53733777,"created_at":"2025-08-22T02:31:26.315Z","updated_at":"2025-08-22T02:31:26.315Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30331657,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-10T05:25:20.737Z","status":"ssl_error","status_checked_at":"2026-03-10T05:25:17.430Z","response_time":106,"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":["dependencies-tree","shameimaru","traverser"],"created_at":"2025-06-14T03:07:52.379Z","updated_at":"2026-03-10T11:06:42.398Z","avatar_url":"https://github.com/node-modules.png","language":"JavaScript","readme":"# Shameimaru.js\n\n[![Shameimaru](http://img.shields.io/npm/v/shameimaru.svg)](https://www.npmjs.org/package/shameimaru)\n[![Shameimaru](http://img.shields.io/npm/dm/shameimaru.svg)](https://www.npmjs.org/package/shameimaru)\n[![Build Status](https://travis-ci.org/node-modules/shameimaru.svg?branch=master)](https://travis-ci.org/node-modules/shameimaru)\n[![Coverage Status](https://img.shields.io/coveralls/node-modules/shameimaru/master.svg)](https://coveralls.io/r/node-modules/shameimaru?branch=master)\n[![License](https://img.shields.io/npm/l/shameimaru.svg?style=flat)](https://www.npmjs.org/package/shameimaru)\n[![Dependency Status](https://david-dm.org/node-modules/shameimaru.svg)](https://david-dm.org/node-modules/shameimaru)\n\nShameimaru Aya likes to traverse node_modules and capture the tree.\n\n![Shameimaru](shameimaru.jpg)\n\n## Installation\n\n```shell\n$ npm install --save shameimaru\n```\n\n## Usage\n\n```js\nconst Shameimaru = require(\"shameimaru\");\n\nconst shameimaru = new Shameimaru(\"\u003cYOUR_PROJ_ROOT\u003e\");\n```\n\n\u003e `\u003cYOUR_PROJ_ROOT\u003e` is the root path which contains **node_modules** of your project.\n\nAfter create the `Shameimaru` instance, you can do `traverse()` through it.\n\n```js\nconst ret = await shameimaru.traverse();\n```\n\nThen you'll get a may-flatten graph-form tree. e.g.\n\n```json\n{\n  \"@crand/mt19937\": {\n    \"ref\": \"5c2f5c96-9c29-4f3f-8cc1-ec6ab1f4025b\",\n    \"name\": \"@crand/mt19937\",\n    \"version\": \"2.0.0\",\n    \"from\": \"@crand/mt19937@2.0.0\",\n    \"resolved\": \"http://registry.npm.taobao.org/@crand/mt19937/download/@crand/mt19937-2.0.0.tgz\",\n    \"exists\": true,\n    \"rawSpec\": \"*\"\n  },\n  \"any-promise\": {\n    \"ref\": \"78325895-5945-4180-97dd-a01c705b254e\",\n    \"name\": \"any-promise\",\n    \"version\": \"0.2.0\",\n    \"from\": \"any-promise@0.2.0\",\n    \"resolved\": \"http://registry.npm.taobao.org/any-promise/download/any-promise-0.2.0.tgz\",\n    \"exists\": true,\n    \"rawSpec\": \"0.2.0\"\n  },\n  \"mz\": {\n    \"ref\": \"63bb611b-232d-4f7a-ba53-3322670ed170\",\n    \"name\": \"mz\",\n    \"version\": \"2.7.0\",\n    \"from\": \"mz@2.7.0\",\n    \"resolved\": \"http://registry.npm.taobao.org/mz/download/mz-2.7.0.tgz\",\n    \"exists\": true,\n    \"rawSpec\": \"^2.7.0\",\n    \"dependencies\": {\n      \"any-promise\": {\n        \"ref\": \"41f0b04f-0904-432f-aa33-13e5cbb8fcdc\",\n        \"name\": \"any-promise\",\n        \"version\": \"1.3.0\",\n        \"from\": \"any-promise@1.3.0\",\n        \"resolved\": \"http://registry.npm.taobao.org/any-promise/download/any-promise-1.3.0.tgz\",\n        \"exists\": true,\n        \"rawSpec\": \"^1.0.0\"\n      }\n    },\n    ...\n  },\n  ...\n}\n```\n\nEach element in the result may contains keys as below:\n\n+ `ref`: a random referrence sign in this tree, it's unique; e.g. `63bb611b-232d-4f7a-ba53-3322670ed170`\n+ `name`: the name of this package (dependency); e.g. `toshihiko`\n+ `version`: the name of this package (dependency); e.g. `2.7.0`\n+ `from`: same as `_from` in installed **package.json**; e.g. `mz@^2.0.0`\n+ `resolved`: same as `_resolved` in installed **package.json**; `http://registry.npm.taobao.org/mz/download/mz-2.7.0.tgz`\n+ `exists`: whether it's really exist in current tree folder; e.g. `true`\n+ `ancestor`: if it matches a exactly the same package at any upper directory, it indicates that element's `ref`; e.g. `63bb611b-232d-4f7a-ba53-3322670ed170`\n+ `rawSpec`: the raw spec of this package in its parent's **package.json**; e.g. `^2.0.0`\n+ `adjustHere`: this package is not need by its parent, but some package need it flatten here; e.g. `true`\n+ `missing`: if we can't find this package at any right path, then it will be `true`; e.g. `true`\n\n## Contribute\n\nYou're welcome to fork and make pull requests!\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnode-modules%2Fshameimaru","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnode-modules%2Fshameimaru","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnode-modules%2Fshameimaru/lists"}