sync-content

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

BlueOak-1.0.0 8 个版本
安装
npm install sync-content
yarn add sync-content
pnpm add sync-content
bun add sync-content
README

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.
版本列表
2.0.4 2026-02-08
2.0.3 2025-11-19
2.0.2 2025-11-19
2.0.1 2024-07-08
2.0.0 2024-07-08
1.0.2 2023-06-06
1.0.1 2023-06-05
1.0.0 2023-06-05