🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

coffeenode-diff

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

coffeenode-diff

easy color-coded diffs, using google's diff/match/patch

0.3.1
latest
Source
npm
Version published
Weekly downloads
4
-73.33%
Maintainers
1
Weekly downloads
 
Created
Source

example:

  console.log DIFF.analyze "this is some test. blah blah blah", "this is other text. blah blah blah"

  [ [ 0, "this is " ]
    [ -1, "some" ]
    [ 1, "other" ]
    [ 0, " te" ]
    [ -1, "s" ]
    [ 1, "x" ]
    [ 0, "t. blah blah blah" ] ]

  console.log DIFF.colorize "this is some test. blah blah blah", "this is other text. blah blah blah"

Keywords

diff

FAQs

Package last updated on 08 Nov 2015

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