Skip to main content
Module

x/denoversion/lib/lib.deno_runtime.d.ts>deno.truncate

Deno cli to manage and bump release versions.
Latest
function deno.truncate
import { deno } from "https://deno.land/x/denoversion@v1.0.2/lib/lib.deno_runtime.d.ts";
const { truncate } = deno;

Truncates or extends the specified file, updating the size of this file to become size.

  import { truncate } from "deno";

  await truncate("hello.txt", 10);

Parameters

name: string
optional
len: number

Returns

Promise<void>