function truncate
Jump to headingtruncate(path: PathLike,len?: number,): Promise<void>Truncates (shortens or extends the length) of the content at path to len bytes.
Parameters Jump to heading
Jump to headingpath: PathLikeoptional
Jump to headinglen: number = 0Return Type Jump to heading
Promise<void>Fulfills with undefined upon success.