Ever wondered how many projects in a given Github organization have a specific lib dependency, but there are too many projects to look for? This script was created to solve this problem.
This project will search in all projects of an organization for a specific dependency inside the package.json
files.
Output example of a search for lib-dependency
:
[
{
"repo":"repo-name-a",
"dependencies":{
"lib-dependency":"^2.5.0"
}
},
{
"repo":"repo-name-b",
"dependencies":{
"lib-dependency":"^1.5.0"
}
}
]
To run this project you will need to generate a Github Personal Token, please give at least projects and files reading permission.
Clone this repository and install it dependencies:
$ npm install
Just execute the command bellow, answer the questions and wait for the data.json
output file:
$ npm start
This project is MIT licensed.