{"id":20420321,"url":"https://github.com/deepraining/sdep","last_synced_at":"2025-04-12T18:09:30.453Z","repository":{"id":65493489,"uuid":"178111471","full_name":"deepraining/sdep","owner":"deepraining","description":"查看一个模块的依赖树. See the dependencies tree of a module.","archived":false,"fork":false,"pushed_at":"2019-07-24T06:20:45.000Z","size":10,"stargazers_count":13,"open_issues_count":1,"forks_count":5,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-12T18:09:09.822Z","etag":null,"topics":["dependencies","dependency","javascript","module","tree","typescript"],"latest_commit_sha":null,"homepage":"","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/deepraining.png","metadata":{"files":{"readme":"README.en.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}},"created_at":"2019-03-28T02:34:39.000Z","updated_at":"2024-01-31T06:27:25.000Z","dependencies_parsed_at":"2023-01-25T21:05:13.144Z","dependency_job_id":null,"html_url":"https://github.com/deepraining/sdep","commit_stats":null,"previous_names":["senntyou/sdep"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deepraining%2Fsdep","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deepraining%2Fsdep/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deepraining%2Fsdep/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deepraining%2Fsdep/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/deepraining","download_url":"https://codeload.github.com/deepraining/sdep/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248610338,"owners_count":21132921,"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","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","dependency","javascript","module","tree","typescript"],"created_at":"2024-11-15T06:42:27.247Z","updated_at":"2025-04-12T18:09:30.390Z","avatar_url":"https://github.com/deepraining.png","language":"JavaScript","readme":"# sdep\n\n[中文文档](./README.md)\n\nSee the dependencies tree of a module.\n\n## quick start\n\nInstall sdep:\n\n```\nnpm install sdep -g\n```\n\nUsage:\n\n```\nsdep [options] \u003cfile\u003e\n```\n\n## options\n\n- `-q, --query \u003cquery\u003e`: a query string to filter output\n- `-r, --regular`: regard query string as regular expression to filter output\n- `-i, --ignore`: ignore files under node_modules\n- `-d, --directory \u003cdirectory\u003e`: the directory containing all modules, default process.cwd()\n- `-b, --base \u003cbase\u003e`: base path to shorten the output lines, default process.cwd()\n- `--rc \u003crc\u003e`: RequireJs config for AMD modules\n- `--wc \u003cwc\u003e`: Webpack config for aliased modules\n- `--tc \u003ctc\u003e`: TypeScript config\n- `-f, --full`: show full dependencies chain when use a query string to filter output\n\n## used libraries\n\n- [commander.js](https://github.com/tj/commander.js)\n- [node-dependency-tree](https://github.com/dependents/node-dependency-tree)\n\n## examples\n\n#### see a file's dependencies hierarchy\n\n```\nsdep example/index.js\n```\n\n```\nexample/index.js\n├ example/css/css.css\n├ example/css/scss.scss\n├ example/css/less.less\n├ example/jsx.jsx\n| ├ node_modules/react/index.js\n| | ├ node_modules/react/cjs/react.production.min.js\n| | | └ node_modules/object-assign/index.js\n| | └ node_modules/react/cjs/react.development.js\n| |   ├ node_modules/object-assign/index.js\n| |   └ node_modules/prop-types/checkPropTypes.js\n| |     └ node_modules/prop-types/lib/ReactPropTypesSecret.js\n| ├ node_modules/react-dom/index.js\n| | ├ node_modules/react-dom/cjs/react-dom.production.min.js\n| | | ├ node_modules/react/index.js\n| | | | ├ node_modules/react/cjs/react.production.min.js\n| | | | | └ node_modules/object-assign/index.js\n| | | | └ node_modules/react/cjs/react.development.js\n| | | |   ├ node_modules/object-assign/index.js\n| | | |   └ node_modules/prop-types/checkPropTypes.js\n| | | |     └ node_modules/prop-types/lib/ReactPropTypesSecret.js\n| | | ├ node_modules/object-assign/index.js\n| | | └ node_modules/scheduler/index.js\n| | |   ├ node_modules/scheduler/cjs/scheduler.production.min.js\n| | |   └ node_modules/scheduler/cjs/scheduler.development.js\n| | └ node_modules/react-dom/cjs/react-dom.development.js\n| |   ├ node_modules/react/index.js\n| |   | ├ node_modules/react/cjs/react.production.min.js\n| |   | | └ node_modules/object-assign/index.js\n| |   | └ node_modules/react/cjs/react.development.js\n| |   |   ├ node_modules/object-assign/index.js\n| |   |   └ node_modules/prop-types/checkPropTypes.js\n| |   |     └ node_modules/prop-types/lib/ReactPropTypesSecret.js\n| |   ├ node_modules/object-assign/index.js\n| |   ├ node_modules/prop-types/checkPropTypes.js\n| |   | └ node_modules/prop-types/lib/ReactPropTypesSecret.js\n| |   ├ node_modules/scheduler/index.js\n| |   | ├ node_modules/scheduler/cjs/scheduler.production.min.js\n| |   | └ node_modules/scheduler/cjs/scheduler.development.js\n| |   └ node_modules/scheduler/tracing.js\n| |     ├ node_modules/scheduler/cjs/scheduler-tracing.production.min.js\n| |     └ node_modules/scheduler/cjs/scheduler-tracing.development.js\n| └ example/wel.jsx\n|   └ node_modules/react/index.js\n|     ├ node_modules/react/cjs/react.production.min.js\n|     | └ node_modules/object-assign/index.js\n|     └ node_modules/react/cjs/react.development.js\n|       ├ node_modules/object-assign/index.js\n|       └ node_modules/prop-types/checkPropTypes.js\n|         └ node_modules/prop-types/lib/ReactPropTypesSecret.js\n└ example/async/index.js\n  └ example/async/index.css\n```\n\n#### see a file's dependencies chain which contains react\n\n```\nsdep example/index.js -q react\n```\n\n```\nexample/index.js\n└ example/jsx.jsx\n  └ node_modules/react/index.js\nexample/index.js\n└ example/jsx.jsx\n  └ node_modules/react-dom/index.js\nexample/index.js\n└ example/jsx.jsx\n  └ example/wel.jsx\n    └ node_modules/react/index.js\n```\n\n#### see a file's dependencies chain which contains less or scss\n\n```\nsdep example/index.js -q 'less|scss' -r\n```\n\n```\nexample/index.js\n└ example/css/scss.scss\nexample/index.js\n└ example/css/less.less\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeepraining%2Fsdep","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdeepraining%2Fsdep","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeepraining%2Fsdep/lists"}