1.0.0 • Published 6 years ago

changed-lines v1.0.0

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

changed-lines v1.0.0

Compare strings just like git diff does! 😎

Thanks to the amazing diff-sequences package. 😇

const diff = require('changed-lines');

// The result is an array.
let res = diff(input, output);

// Optional ansi colors.
const chalk = require('chalk');
res = diff(input, output, {
  green: chalk.green,
  red: chalk.red,
});

The input and output values can be a string or array of strings.

1.0.0

6 years ago