@ende/fs/unstable-truncate

ende add jsr:@ende/fs

Version 2026.10.15 on JSR.

Exports

  • truncate — Truncates (or extends) the specified file, to reach the specified `len`. If `len` is not specified then the entire file contents are truncated.
  • truncateSync — Synchronously truncates (or extends) the specified file, to reach the specified `len`. If `len` is not specified then the entire file contents are truncated.