npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

properties-comparator

v1.0.6

Published

This utility provides functionality to parse and compare properties files in the format of key-value pairs. It reads properties files, compares the values for each key across multiple files, and logs the results.

Downloads

166

Readme

properties-comparator

A powerful utility for parsing and comparing .properties and .yml/.yaml files. This tool reads files as key-value pairs, compares values across multiple files, and generates detailed comparison reports in various formats.

NPM Package Quality Gate Status

Features

  • Multi-format Support: Parse both .properties files and .yml/.yaml (YAML) files
  • Nested Structure Handling: Flatten nested YAML structures into key-value pairs
  • Comprehensive Comparison: Compare values across multiple files simultaneously
  • Multiple Report Formats:
    • Console output with color-coded highlighting
    • HTML reports with CSS styling
    • Markdown reports
  • Flexible Output Options: Save reports to files or display in console
  • User-friendly CLI: Simple command-line interface with intuitive options

Installation

# Install globally
npm install -g properties-comparator

# To uninstall
npm uninstall -g properties-comparator

Usage

Basic Usage

Compare two or more files:

properties-comparator <filePath1> <filePath2> [<filePath3> ...]

Examples

Compare multiple files:

properties-comparator ./config1.properties ./config2.yml ./config3.properties

Generate HTML report:

properties-comparator -f html -o report.html ./config1.properties ./config2.yml

Generate Markdown report:

properties-comparator -f markdown -o report.md ./config1.properties ./config2.yml

Command Options

  • -f, --format <type> - Report format (console, html, markdown)
  • -o, --output <file> - Output file for the report
  • -h, --help - Display help information

Report Examples

Terminal View

Terminal Report

HTML View

HTML Report

Markdown View

Markdown Report

Quality Assurance

This package is thoroughly tested with over 90% code coverage to ensure reliability.

Test Coverage

Compatibility

Developed and tested with:

  • npm v11.7.0
  • Node.js v25.2.1

Documentation

For more detailed information, please check the Documentation.

License

MIT