// Example - Download By FtpSource const fs = new FtpSource({ host: "127.0.0.1", path: "/source-ftp-test.dict", port: 21 }); const writer = new FileSource().createWritableStream({path: "/home/work/a.log"}); fs.createReadableStream().pipe(writer);
GetReadOption<Config, ReadOption> = (config: Config) => ReadOption;
GetWriteOption<Config, WriteOption> = (config: Config) => WriteOption;
// Example - Download By FtpSource const fs = new FtpSource({ host: "127.0.0.1", path: "/source-ftp-test.dict", port: 21 }); const writer = new FileSource().createWritableStream({path: "/home/work/a.log"}); fs.createReadableStream().pipe(writer);