Skip to content

Ishan-001/Dependroid

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


DepenDroid

A CLI tool that takes a list of Github repositories (assuming all of them are node js projects with a package.json and package-lock.json in the root) and the name and version of a dependency, and returns the current version of that dependency and tells if the version is greater than or equal to the version specified or not.

Table of Contents
  1. About The Project
  2. Getting Started
  3. Usage
  4. License

About The Project

DependDroid eases the process of checking and updating dependencies in multiple repositories. It fetches the package.json file of given git repositories and compares their dependency version with the specified one. It also displays the current versions and a boolean value representing whether the dependencies need an update, as output.

Built With

Getting Started

Prerequisites

Make sure your npm is up to date.

  • npm
    npm install npm@latest -g

Installation

  1. Clone the repo
    git clone https://github.com/dyte-submissions/dyte-vit-2022-Ishan-001.git
  2. Install NPM packages
    npm install
  3. Install the tool on your machine
    npm i -g
    Now the tool is ready to be run in terminal

Usage

DepenDroid comes with two commands - check and update (under development). You can use the help command to view the tool details.


Both the commands can be viewed in detail using dependroid <command> --help


The check command needs to be supplied two arguments - path_to_csv and dependency_version. The csv file is parsed using jsontocsv library and package.json from each repository is fetched using request. Versions are compared using compare-versions library.

The following line of code can be used to test the check command.

dependroid check assets/test.csv [email protected]

License

Distributed under the MIT License. See LICENSE.txt for more information.

Contact

Ishan Khandelwal - @twitter - [email protected]

About

CLI tool to check and update dependencies

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published