Skip to main content
constants.O_TRUNC - fs - Node documentation
variable constants.O_TRUNC

Usage in Deno

import { constants } from "node:fs";

Constant for fs.open(). Flag indicating that if the file exists and is a regular file, and the file is opened successfully for write access, its length shall be truncated to zero.

Type

number