UNPKG

@dpkit/file

Version:

Fast TypeScript data management framework built on top of the Data Package standard and Polars DataFrames

11 lines (9 loc) 319 B
import { loadFileStream } from "../stream/load.js" import { saveFileStream } from "../stream/save.js" export async function saveFileToDisc(options: { sourcePath: string targetPath: string }) { const stream = await loadFileStream(options.sourcePath) await saveFileStream(stream, { path: options.targetPath }) }