1.0.0 • Published 4 years ago

sync-copies v1.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
4 years ago

sync-copies

Assistant to keep duplicated copies of a file identical, aka the ultimate copy/paste tool.

npm.io

Installation

npm install sync-copies

Usage

sync-copies comes in two forms:

Node module

const { serve } = require("sync-copies");
const folders = ["./packages/a", "./packages/b"];
const match = "*.md";

serve({
  folders,
  match
});

The above example will open a browser listing all files matching "*.md" in the folders "./packages/a" and "./packages/b".

serve(opts: { folders: string[], match: string, port?: number })

  • folders: the list of folders to look into.
  • match: a glob used to match files inside the provided folders.
  • port (optional, defaults to an available port): the port the node server should listen to.

CLI

Usage
    $ sync-copies <folders>

Options
    --match, -m Files to match in the provided folders.
    --port, -p The port to listen to.
    --open, -o Open the app in the default browser.

Examples
    $ sync-copies ./packages/package-a/ ./packages/package-b/ --match '*.md'

The above example will open a browser listing all files matching "*.md" in the folders "./packages/a" and "./packages/b".

1.0.0

4 years ago

0.11.0

4 years ago

0.10.0

4 years ago

0.9.0

4 years ago

0.8.0

4 years ago

0.7.0

4 years ago

0.6.0

4 years ago

0.5.0

4 years ago

0.4.0

4 years ago

0.3.0

4 years ago

0.2.0

4 years ago

0.1.0

4 years ago