Skip to main content
Module

x/rsync_parser/mod.ts>RsyncItemizeChangesParser

Parses the output of rsync when called with the `--itemize-changes` option. This allows you to programmatically identify files that got created, updated and deleted. Output can be in the form of strings and streams.
Latest
class RsyncItemizeChangesParser
import { RsyncItemizeChangesParser } from "https://deno.land/x/rsync_parser@v2.2.1/mod.ts";

Parses output from rsync command ran with the --itemize-changes option.

Constructors

new
RsyncItemizeChangesParser(stream: string | Deno.Reader)

Parses output from rsync command ran with the --itemize-changes option. Can parse from a string or a readable stream.

Methods

read(): Promise<Token | null>

Reads next token. Returns null when no more tokens are available.