compare-and-patch

0.6.0 • Public • Published

compare-and-patch

compares two folders and makes them identical

npm package version Contributor Covenant PRs Welcome snyk report

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

  1. Add tests.
  2. Add stats.
  3. Add ignore patterns.
  4. Dry run.

Readme

Keywords

Package Sidebar

Install

npm i compare-and-patch

Weekly Downloads

1

Version

0.6.0

License

MIT

Unpacked Size

160 kB

Total Files

11

Last publish

Collaborators

  • yoglib