Skip to main content
The Deno 2 Release Candidate is here
Learn more
function Truncate
import { Truncate } from "https://deno.land/x/macromania_assets@v0.2.0/deps.ts";

Truncates (or extends) the specified file, to reach the specified len. If len is not specified then the entire file contents are truncated.

See https://deno.land/api@v1.40.3?unstable=true&s=Deno.truncate

Parameters

unnamed 0: { path: string; len?: number; }

Returns

The empty string.