m3g4p0p / css-diff

Get the diff between two css

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CSS Diff Build Status

Get the diff between two css.

Installation

$ npm install @romainberger/css-diff

Usage

const cssDiff = require('@romainberger/css-diff')

const cssA = `
body {
  background: white;
  color: red;
}
`

const cssB = `
body {
  background: white;
  color: blue;
}
`

const diff = cssDiff(cssA, cssB)
// body {
//   color: blue;
// }

About

Get the diff between two css

License:MIT License


Languages

Language:JavaScript 90.3%Language:CSS 9.7%