package
Synchronize the contents of one folder to another location, only copying files if contents differ.
npm install sync-contentGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Synchronize the contents of one folder to another location, only copying files if contents differ.
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.Estimated unpacked size across 11 packages.
7.3 MB
Includes dependencies.
^3.0.1
3.0.1
^6.0.0
6.1.4
^3.0.0
3.0.0