0.0.8 • Published 7 months ago

@kyleupton/node-rsync v0.0.8

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

node-rsync

Rsync wrapper API for server-side javascript runtimes

NOTE: Requires rsync version 3.1.0 or greater

Features

  • Progress reporting
  • Typed rsync options
  • Set custom executable path
  • CJS + ESM exports
  • 0 dependencies

Install

yarn add @kyleupton/node-rsync

Example

import { setPath, copy } from '@kyleupton/node-rsync'

setPath('/opt/homebrew/Cellar/rsync/3.2.7_1/bin/rsync')

const res = await copy({
  source: '/Users/kyleupton/Downloads/',
  destination: '/Users/kyleupton/Documents/dest/',
  options: {
    archive: true
  },
  onProgress: (progress) => {
    console.log(progress)
  }
})
0.0.8

7 months ago

0.0.7

7 months ago

0.0.6

7 months ago

0.0.5

7 months ago

0.0.4

8 months ago

0.0.3

8 months ago

0.0.2

8 months ago

0.0.1

8 months ago