Skip to content
This repository has been archived by the owner on Jul 10, 2023. It is now read-only.
/ compare-and-patch Public archive

A tool for copying files from one library to another

License

Notifications You must be signed in to change notification settings

YogliB/compare-and-patch

Repository files navigation

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 ignore patterns.
  3. Dry run.

About

A tool for copying files from one library to another

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks