# sync-content

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

Latest version **2.0.4** (published 2026-02-08) · BlueOak-1.0.0 license · 0 weekly downloads

## Install

```sh
npm install sync-content
pnpm add sync-content
yarn add sync-content
bun add sync-content
```

Provides the command `sync-content`.

## Health

**Score 60/100 (C)** — status: stable.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 2.0.4 |
| Published | 2026-02-08 |
| First published | 2023-06-05 |
| Weekly downloads | 0 |
| License | BlueOak-1.0.0 |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | 20 \|\| >=22 |
| Dependencies | 4 |
| Unpacked size | 61 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 10 |
| Author | Isaac Z. Schlueter |
| Maintainers | isaacs |

## Links

- npm: https://www.npmjs.com/package/sync-content
- Repository: https://github.com/isaacs/sync-content
- Homepage: https://github.com/isaacs/sync-content#readme
- Issues: https://github.com/isaacs/sync-content/issues
- Funding: https://github.com/sponsors/isaacs
- npm.io page: https://npm.io/package/sync-content

## Dependencies (4)

- [glob](https://npm.io/package/glob.md) ^13.0.1
- [mkdirp](https://npm.io/package/mkdirp.md) ^3.0.1
- [rimraf](https://npm.io/package/rimraf.md) ^6.0.0
- [path-scurry](https://npm.io/package/path-scurry.md) ^2.0.0

## Recent versions

- 2.0.4 (latest) — 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

## README

# sync-content

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

## USAGE

```js
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.
```

---
_Source: https://npm.io/package/sync-content · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
