/css-diff

Get the diff between two css

Primary LanguageJavaScriptMIT LicenseMIT

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;
// }