{"id":13452043,"url":"https://github.com/segmentio/dependency-report","last_synced_at":"2025-03-23T19:33:33.105Z","repository":{"id":30456447,"uuid":"123334877","full_name":"segmentio/dependency-report","owner":"segmentio","description":"Generate usage reports of your JS dependencies","archived":true,"fork":false,"pushed_at":"2023-07-11T13:19:15.000Z","size":736,"stargazers_count":130,"open_issues_count":18,"forks_count":20,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-05-21T12:00:15.984Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/segmentio.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2018-02-28T19:54:11.000Z","updated_at":"2024-04-15T18:14:16.000Z","dependencies_parsed_at":"2024-01-16T03:57:27.071Z","dependency_job_id":null,"html_url":"https://github.com/segmentio/dependency-report","commit_stats":{"total_commits":20,"total_committers":4,"mean_commits":5.0,"dds":0.25,"last_synced_commit":"79c687eaa368a0d639d99251de217eda147a9325"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/segmentio%2Fdependency-report","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/segmentio%2Fdependency-report/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/segmentio%2Fdependency-report/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/segmentio%2Fdependency-report/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/segmentio","download_url":"https://codeload.github.com/segmentio/dependency-report/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221900709,"owners_count":16898986,"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":[],"created_at":"2024-07-31T07:01:11.049Z","updated_at":"2024-10-28T18:30:31.162Z","avatar_url":"https://github.com/segmentio.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# dependency-report\n\n\u003e Generate usage reports for JavaScript dependencies through an AST.\n\n_Note: only supports ES2015 `import` statements (not CommonJS `require` calls)._\n\n## Install\n\n```\nyarn add @segment/dependency-report\n# or\nnpm install @segment/dependency-report\n```\n\n## CLI Usage\n\n### Input\n\n```\n$ dependency-report './client/**/*.js' --packages=evergreen-ui --exports=SideSheet\n```\n\n### Results\n\n```\n[\n  [\n    {\n      \"name\": \"SideSheet\",\n      \"files\": 6,\n      \"filepaths\": [\n        \"./client/components/Customers/Audiences/Audience/Overview/RunOverview/index.js\",\n        \"./client/components/Customers/Destinations/View.js\",\n        \"./client/components/Customers/DestinationSettings.js\",\n        \"./client/components/Destinations/DestinationErrors/ErrorSheet.js\",\n        \"./client/components/WorkspaceSettingsV2/DeletionRequests/RegulationSheet.js\",\n        \"./client/containers/Navigation/UserDropdownApp.js\"\n      ]\n    }\n  ]\n]\n```\n\n### input\n\n```\n$ dependency-report './client/**/*.js' --packages=evergreen-ui --exports=SideSheet,Popover,CornerDialog,RadioGroup\n```\n\n### Results\n\n```\n[\n  [\n    {\n      \"name\": \"SideSheet\",\n      \"files\": 6,\n      \"filepaths\": [\n        \"./client/components/Customers/Audiences/Audience/Overview/RunOverview/index.js\",\n        \"./client/components/Customers/Destinations/View.js\",\n        \"./client/components/Customers/DestinationSettings.js\",\n        \"./client/components/Destinations/DestinationErrors/ErrorSheet.js\",\n        \"./client/components/WorkspaceSettingsV2/DeletionRequests/RegulationSheet.js\",\n        \"./client/containers/Navigation/UserDropdownApp.js\"\n      ]\n    },\n    {\n      \"name\": \"Popover\",\n      \"files\": 2,\n      \"filepaths\": [\n        \"./client/components/WorkspaceSettingsV2/SuppressedUsers/RemoveButton.js\",\n        \"./client/containers/Navigation/UserDropdownApp.js\"\n      ]\n    },\n    {\n      \"name\": \"CornerDialog\",\n      \"files\": 4,\n      \"filepaths\": [\n        \"./client/components/GDPRNotification.js\",\n        \"./client/components/NewAgreementNotification.js\",\n        \"./client/components/Sources/SourceDebugger/TestConnectionNotice.js\",\n        \"./client/containers/Sources/SourceSchema/DataGovernanceFeedbackApp.js\"\n      ]\n    },\n    {\n      \"name\": \"RadioGroup\",\n      \"files\": 0,\n      \"filepaths\": []\n    }\n  ]\n]\n```\n\n## Usage\n\n```javascript\nconst DependencyReport = require('@segment/dependency-report')\n\nconst report = new DependencyReport({\n  files: '**/*.js'\n})\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsegmentio%2Fdependency-report","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsegmentio%2Fdependency-report","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsegmentio%2Fdependency-report/lists"}