compare-and-patch
compares two folders and makes them identical
Installation
npm install -g compare-and-patch
Usage
Long way:
compare-and-patch --origin ./origin --target ./path/to/target
Shorthand:
cap -o ./origin -t ./path/to/target
Don't want to install? Just do:
npx cap -o ./origin -t ./path/to/target
See all options
Run:
cap
or go here.
JavaScript API
install:
npm install compare-and-patch
import & use:
import { compareAndPatch } from "compare-and-patch";
compareAndPatch({
origin: "./origin",
target: "./path/to/target",
});
All options can be seen here.
TODO
- Add tests.
- Add stats.
- Add ignore patterns.
- Dry run.