UNPKG

@dpkit/file

Version:

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

7 lines (5 loc) 213 B
import { Readable } from "node:stream" import { saveFileStream } from "../stream/index.ts" export async function saveFile(path: string, buffer: Buffer) { await saveFileStream(Readable.from(buffer), { path }) }