sync-content
TypeScript icon, indicating that this package has built-in type declarations

2.0.1 • Public • Published

sync-content

Synchronize the contents of one folder to another location, only copying files if contents differ.

USAGE

import { syncContent, syncContentSync } from 'sync-content'

// promise version will generally be faster, because parallel
await syncContent('/some/source/path', '/some/destination/path')

// or sync version:
syncContentSync('/some/source/path', '/some/destination/path')

// now they match!
// Any files that already had matching contents were skipped.
// Anything absent in the source was removed.
// Anything that was the wrong type of entry was clobbered.

/sync-content/

    Package Sidebar

    Install

    npm i sync-content

    Weekly Downloads

    152,602

    Version

    2.0.1

    License

    BlueOak-1.0.0

    Unpacked Size

    62.4 kB

    Total Files

    17

    Last publish

    Collaborators

    • isaacs