Skip to content

FileSystemAdapter.process method

FileSystemAdapter › process

Official

Atomically read, modify, and save the contents of a plaintext file.

Signature:

process(normalizedPath: string, fn: (data: string) => string, options?: DataWriteOptions | undefined): Promise<string>

Parameters:

Parameter Type Description
normalizedPath string
fn (data: string) => string
options? DataWriteOptions | undefined *(Optional)*

Returns: Promise<string>