blob: 5ca1945bb44bc0238404aa05d7243dbd9673069d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#!/usr/bin/env node
const {generateCSSPatch} = require('css-patch')
const fs = require('fs')
const files = process.argv.slice(2)
if (files.length !== 2) {
console.log(`usage: ${process.argv[0]} file1 file2`)
process.exit()
}
const css1 = fs.readFileSync(files[0], 'utf-8')
const css2 = fs.readFileSync(files[1], 'utf-8')
console.log(generateCSSPatch(css1, css2))
|