VO_TRUNC
Bun

variable

fs.constants.O_TRUNC

const O_TRUNC: number

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.