Skip to content

Rsync wrapper API for server-side javascript runtimes

License

Notifications You must be signed in to change notification settings

kyleaupton/node-rsync

Repository files navigation

Node version

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)
  }
})

About

Rsync wrapper API for server-side javascript runtimes

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published