# Version Buddy
A command-line tool designed to simplify the process of upgrading packages in your projects.


With **Version Buddy**, you can easily upgrade your project's dependencies to their latest versions, ensuring that your project stays up-to-date with the latest features and security fixes.


## Table of Contents
- [Install](#install)
- [Pre-requisites](#prerequisites)
- [Troubleshoot](#troubleshoot)

## Install

```sh
# Usage with NPM
$ npm install version-buddy

```

## Pre-requisites

Create a file named **version-buddy.js** in the directory where the package.json file is located and add below piece of code:

```js

const upgradePackages = require('version-buddy');
upgradePackages('./package.json');

```

Add below script in package.json.

```sh

"version-buddy": "node version-buddy.js"

```

Run the script to upgrade the packages using **npm run version-buddy**

## Troubleshoot

If anything goes wrong or something is not working, it could be due to a few reasons:

1. **Command Not Found**: Ensure that the `npm` command is available in the environment where you are running the script. Sometimes, the `PATH` environment variable might not include the location of the npm binary.

2. **npm Configuration Issue**: There might be a configuration issue with npm. Ensure that npm is correctly installed and configured on your system.

3. **Permission Issue**: Depending on your system configuration, you might need appropriate permissions to execute npm commands.


To troubleshoot the issue, you can try the following steps:

1. Check your system's environment variables to ensure that the location of the npm binary is included in the `PATH` variable.

2. Verify that npm is correctly installed and configured on your system.
