Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

std/node/fs/promises.ts>truncate

Deno standard library
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
variable truncate
import { truncate } from "https://deno.land/std@0.158.0/node/fs/promises.ts";