New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

cli-gen_diff

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cli-gen_diff

Compares two configuration files and shows a difference.

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

PROJECT 'Generate difference'

Build Status Maintainability Test Coverage

gendiff compares two configuration files and shows difference. The package can be used as CLI utility or Node.js package that can be used in your project.

gendiff supports file extensions such as json, yaml, yml, ini. It can output the result in 'tree' and 'plain' formats. It's also possible to output in json format for data exchange using the json option. You can select the output format by setting the option flag -f (--format). By default output format 'tree'.

For example:

$ gendiff --format plain project/configurations/before.json project/configurations/after.json

or

$ gendiff project/configurations/before.ini project/configurations/after.ini

asciicast asciicast asciicast asciicast

Setup

$ git clone https://github.com/portal-x/backend-project-lvl2.git
$ make install
$ npm link

gendiff module for node.js

$ npm install gendiff

API

gendiff supports file extensions such as json, yaml, yml, ini. It can output the result in 'tree' and 'plain' formats. It's also possible to output in json format for data exchange. Set the json in parameter. By default output format 'tree'.

For example:

import gendiff from 'gendiff';

const diff = gendiff('./forExample/before.json', '/user/documents/after.json', 'json');

FAQs

Package last updated on 05 Jun 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts