Socket
Book a DemoInstallSign in
Socket

compare-and-patch

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

compare-and-patch

Compares two directories and makes them identical

latest
Source
npmnpm
Version
0.6.0
Version published
Maintainers
1
Created
Source

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

  • Add tests.
  • Add stats.
  • Add ignore patterns.
  • Dry run.

Keywords

cli

FAQs

Package last updated on 30 Mar 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.