Skip to main content
Module

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

Deprecated! UUID is part of the deno standard library
Latest
function Deno.truncateSync
import { Deno } from "https://deno.land/x/uuid@v0.1.2/lib/lib.deno_runtime.d.ts";
const { truncateSync } = Deno;

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

  Deno.truncateSync("hello.txt", 10);

Parameters

name: string
optional
len: number