Skip to main content
Module

x/uuid/lib/lib.deno_runtime.d.ts>Deno.truncate

Deprecated! UUID is part of the deno standard library
Latest
function Deno.truncate
import { Deno } from "https://deno.land/x/uuid@v0.1.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.

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

Parameters

name: string
optional
len: number

Returns

Promise<void>