
Product
Socket for Jira Is Now Available
Socket for Jira lets teams turn alerts into Jira tickets with manual creation, automated ticketing rules, and two-way sync.
dependency-fetcher
Advanced tools
Get all the dependencies and dev-dependencies of a github repository.
$ npm install dependency-fetcher
const {
getAllDependencies,
getDependencies,
getDevDependencies
} = require("dependency-fetcher");
//add user_name and repo_ name
getAllDependencies("RocktimSaikia", "git-job").then(res => {
console.log(res);
});
/*
=> {
dependencies: [
{ package: 'axios', version: '0.18.1' },
{ package: 'chalk', version: '2.4.2' },
{ package: 'meow', version: '5.0.0' },
{ package: 'striptags', version: '3.1.1' }
],
devDependencies: [
{ package: 'eslint', version: '5.16.0' },
{ package: 'eslint-config-airbnb-base', version: '13.2.0' },
{ package: 'eslint-plugin-import', version: '2.18.2' }
]
}
*/
//get only the dependencies
getDependencies("RocktimSaikia", "git-job").then(res => {
console.log(res);
});
/*
=> [
{ package: 'axios', version: '0.18.1' },
{ package: 'chalk', version: '2.4.2' },
{ package: 'meow', version: '5.0.0' },
{ package: 'striptags', version: '3.1.1' }
],
*/
//get only the dev-dependencies
getDevDependencies("RocktimSaikia", "git-job").then(res => {
console.log(res);
});
/*
=> [
{ package: 'eslint', version: '5.16.0' },
{ package: 'eslint-config-airbnb-base', version: '13.2.0' },
{ package: 'eslint-plugin-import', version: '2.18.2' }
]
*/
If you want to get the descriptions of each packages then simply pass "_desc" as the third parameter to the function call.
ex:
getDependencies("RocktimSaikia", "git-job", "_desc").then(res => {
console.log(res);
});
/*
=> [
{
package: 'axios',
version: '0.18.1',
description: 'Promise based HTTP client for the browser and node.js'
},
{
package: 'chalk',
version: '2.4.2',
description: 'Terminal string styling done right'
},
{
package: 'meow',
version: '5.0.0',
description: 'CLI app helper'
},
{
package: 'striptags',
version: '3.1.1',
description: 'PHP strip_tags in Node.js'
}
]
*/
FAQs
Get all the dependencies of a github repository
We found that dependency-fetcher demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Socket for Jira lets teams turn alerts into Jira tickets with manual creation, automated ticketing rules, and two-way sync.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.