New:Socket for Asana Is Now Available.Learn more
Get Started

diffed

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

diffed

a diff tool

latest
npmnpm
Version
1.0.2
Version published
Maintainers
1
Created
Source

diffed

Build for speed and tiny (less than 5KB)

Two different algorithms were used, one that can quickly generate results(there will be a small deviation from the ideal result), and the other that produces the ideal result of the diff algorithm, but it takes slightly more time.

Based on "Path cutting algorithm".

Install

npm install diffed -g

Usage

ClI

diffed dbaf bcdb

#Color data display.Generate ideal results.
diffed apple application -f

#Color data display.Using faster algorithms.

node

const diff=require("diffed");
diff("abcdef","cdf");
//[[-1,"ab"],[0,"cd"],[-1,"e"],[0,"f"]] -1 to cut,0 to stay,1 to add
diff.fast("abcdef","cdf")//Using faster algorithms

Keywords

diff

FAQs

Package last updated on 13 May 2023

Related posts