constants.O_TRUNC - Node documentation
variable constants.O_TRUNC

Usage in Deno

import { constants } from "node:fs";
const { O_TRUNC } = constants;

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