@kyleupton/node-rsync
TypeScript icon, indicating that this package has built-in type declarations

0.0.8 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i @kyleupton/node-rsync

Weekly Downloads

0

Version

0.0.8

License

MIT

Unpacked Size

62.6 kB

Total Files

31

Last publish

Collaborators

  • kyleupton