sync-content
Synchronize the contents of one folder to another location, only copying files if contents differ.
Last updated 10 months ago by isaacs .
BlueOak-1.0.0 · Repository · Bugs · Original npm · Tarball · package.json
$ npm install sync-content 
SYNC missed versions from official npm registry.

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.

Current Tags

  • 2.0.4                                ...           latest (10 months ago)

8 Versions

  • 2.0.4                                ...           10 months ago
  • 2.0.3                                ...           a year ago
  • 2.0.2                                ...           a year ago
  • 2.0.1                                ...           2 years ago
  • 2.0.0                                ...           2 years ago
  • 1.0.2                                ...           3 years ago
  • 1.0.1                                ...           3 years ago
  • 1.0.0                                ...           3 years ago
Maintainers (1)
Downloads
Total 41
Today 0
This Week 0
This Month 17
Last Day 0
Last Week 0
Last Month 4
Dependencies (4)
Dev Dependencies (5)

© 2010 - cnpmjs.org x YWFE | Home | YWFE