Skip to content

drgoodness/fullstack-javascript-project-46

Repository files navigation

gendiff.js

Hexlet | Actions Status Node CI | Actions Status Codeclimate | Maintainability Codeclimate | Test Coverage

Description

Here is introduced a cli-app which finds differences in 2 files and shows them in different formats.

Supported file extensions:

  • json
  • yaml
  • yml

Supported output formats:

  • stylish (by default)
  • plain
  • json

Usage

Prerequisites

  • Node 21 is installed.

Install

git clone https://github.com/drgoodness/fullstack-javascript-project-46.git

npm ci

npm link

Run

Start an app. For example:

gendiff -h

Usage: gendiff [options] <filepath1> <filepath2>

Compares two configuration files and shows a difference.

Options:
  -V, --version        output the version number
  -f, --format [type]  output format
  -h, --help           display help for command

Demo

asciicast

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors