{"id":20806327,"url":"https://github.com/nodesource/gather-dependencies","last_synced_at":"2025-09-28T11:30:44.528Z","repository":{"id":57244539,"uuid":"42899549","full_name":"nodesource/gather-dependencies","owner":"nodesource","description":"Similar in API to npm shrinkwrap producing a object structure with each type of dependency installed.","archived":false,"fork":false,"pushed_at":"2016-06-07T18:24:21.000Z","size":10,"stargazers_count":1,"open_issues_count":0,"forks_count":2,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-12-18T00:12:53.472Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nodesource.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-09-21T23:35:59.000Z","updated_at":"2021-12-26T19:11:23.000Z","dependencies_parsed_at":"2022-09-01T06:12:00.235Z","dependency_job_id":null,"html_url":"https://github.com/nodesource/gather-dependencies","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nodesource%2Fgather-dependencies","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nodesource%2Fgather-dependencies/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nodesource%2Fgather-dependencies/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nodesource%2Fgather-dependencies/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nodesource","download_url":"https://codeload.github.com/nodesource/gather-dependencies/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234511804,"owners_count":18844740,"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-11-17T19:19:19.798Z","updated_at":"2025-09-28T11:30:44.249Z","avatar_url":"https://github.com/nodesource.png","language":"JavaScript","readme":"gather-dependencies\n===================\n\nSimilar in API to `npm shrinkwrap` producing a object structure with each type of dependency installed.\n\n* dependencies\n* devDependencies\n* optionalDependencies\n* peerDependencies\n\nSee the sample `npm-shrinkwrap.json` in ./test/fixtures/with-npm-install. With a shrinkwrapped file, dependencies saved with `npm shrinkwrap --dev` are grouped with other dependencies.\n\n*`npm-shrinkwrap.json`*\n```javascript\n{\n  \"name\": \"without-npm-install\",\n  \"version\": \"1.0.0\",\n  \"dependencies\": {\n    \"client-request\": {\n      \"version\": \"1.0.1\",\n      \"from\": \"client-request@*\",\n      \"resolved\": \"https://registry.npmjs.org/client-request/-/client-request-1.0.1.tgz\"\n    },\n    \"tape\": {\n      \"version\": \"4.2.0\",\n      \"from\": \"tape@*\",\n      \"resolved\": \"https://registry.npmjs.org/tape/-/tape-4.2.0.tgz\",\n    ...\n```\n\n`gather-dependencies` does not care about the resolved registry URI.\n\n`gather-dependencies` adds the field `requestedVersion` for the user specified version in `package.json`.\n\nLeaf nodes that do not have `version` or `from` already have the dependency satisfied. `npm shrinkwrap` ignores these entries.\n\n## Examples\n\nSee [examples]('./examples').\n\n*`gather-dependencies-report.json`*\n```javascript\n{\n  \"name\": \"gather-dependencies\",\n  \"version\": \"1.0.0\",\n  \"dependencies\": {\n    \"read-package-tree\": {\n      \"requestedVersion\": \"~5.1.0\",\n      \"version\": \"5.1.0\",\n      \"from\": \"read-package-tree@*\",\n      \"dependencies\": {\n        \"debuglog\": {\n          \"requestedVersion\": \"^1.0.1\",\n          \"version\": \"1.0.1\",\n          \"from\": \"debuglog@\u003e=1.0.1 \u003c2.0.0\"\n        },\n    ...\n```\n\n## Authors and Contributors\n\n\u003ctable\u003e\u003ctbody\u003e\n\u003ctr\u003e\u003cth align=\"left\"\u003eDan Shaw\u003c/th\u003e\u003ctd\u003e\u003ca href=\"https://github.com/dshaw\"\u003eGitHub/dshaw\u003c/a\u003e\u003c/td\u003e\u003ctd\u003e\u003ca href=\"http://twitter.com/dshaw\"\u003eTwitter/@dshaw\u003c/a\u003e\u003c/td\u003e\u003c/tr\u003e\n\u003ctr\u003e\u003cth align=\"left\"\u003eJulian Duque\u003c/th\u003e\u003ctd\u003e\u003ca href=\"https://github.com/julianduque\"\u003eGitHub/julianduque\u003c/a\u003e\u003c/td\u003e\u003ctd\u003e\u003ca href=\"http://twitter.com/julian_duque\"\u003eTwitter/@julian_duque\u003c/a\u003e\u003c/td\u003e\u003c/tr\u003e\n\u003ctr\u003e\u003cth align=\"left\"\u003eDaniel Aristizabal\u003c/th\u003e\u003ctd\u003e\u003ca href=\"https://github.com/cronopio\"\u003eGitHub/cronopio\u003c/a\u003e\u003c/td\u003e\u003ctd\u003e\u003ca href=\"http://twitter.com/cronopio2\"\u003eTwitter/@cronopio2\u003c/a\u003e\u003c/td\u003e\u003c/tr\u003e\n\u003ctr\u003e\u003cth align=\"left\"\u003eAdrian Estrada\u003c/th\u003e\u003ctd\u003e\u003ca href=\"https://github.com/edsadr\"\u003eGitHub/edsadr\u003c/a\u003e\u003c/td\u003e\u003ctd\u003e\u003ca href=\"http://twitter.com/edsadr\"\u003eTwitter/@edsadr\u003c/a\u003e\u003c/td\u003e\u003c/tr\u003e\n\u003c/tbody\u003e\u003c/table\u003e\n\nContributions are welcomed from anyone wanting to improve this project!\n\n## License \u0026 Copyright\n\n**gather-dependencies** is Copyright (c) 2016 NodeSource and licensed under the MIT licence. All rights not explicitly granted in the MIT license are reserved. See the included LICENSE.md file for more details.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnodesource%2Fgather-dependencies","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnodesource%2Fgather-dependencies","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnodesource%2Fgather-dependencies/lists"}