1.0.4 • Published 8 months ago

package-version-tracker v1.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months ago

Package Version Tracker

npm version

package-version-tracker is a command-line interface (CLI) tool that helps track the versions of npm packages in a project. It reads the package.json file, analyzes the versions of dependencies, and provides a report, allowing you to keep track of outdated or vulnerable packages easily.

Why Was This Created?

In large-scale projects, it can become difficult to keep track of the versions of various npm packages and their updates. This tool was created to simplify the process of tracking package versions and generating reports, so developers can easily see when dependencies need to be updated.

The tool helps with:

  • Keeping track of package versions – Identify which versions of your dependencies are installed and what version ranges are specified.
  • Generating reports – The tool generates a CSV report detailing the package name, version, and other important metadata.
  • Automation – As part of a CI/CD pipeline, this tool can be used to regularly check package versions and ensure they are up to date.

Features

  • Analyzes package.json and node_modules to list package versions.
  • Generates a CSV report for easy reference.
  • Provides a simple command-line interface (CLI) for quick use.
  • Supports automatic creation of a CSV report based on the current package versions in the project.

Installation

You can install package-version-tracker globally or locally via npm:

Global Installation

npm install -g package-version-tracker

Usage

pvt --help

This will display the available options, such as:

  • -d, --directory <directory>: Directory containing the package.json file (default: current working directory)
  • -o, --output <output>: Output file name for the CSV report (default: {project-name}_package_version_report.csv)
  • -d, --dependencies-only: Only scan dependencies, exclude dev-dependencies

    Examples

  1. Generate a report in the current directory:

    pvt
  2. Generate a report in a different directory:

    pvt --directory /path/to/project
  3. Generate a report with only dependency versions (exclude dev-dependencies):

    pvt --dependencies-only
  4. Generate a report with a custom output file name:

    pvt --output my-report.csv
1.0.4

8 months ago

1.0.3

8 months ago

1.0.2

8 months ago

1.0.1

9 months ago

1.0.0

9 months ago