Skip to content

CapacitorAdapter.process method

CapacitorAdapter › 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:

ParameterTypeDescription
normalizedPathstring
fn(data: string) => string
options?DataWriteOptions | undefined*(Optional)*

Returns: Promise<string>

Since: 1.7.2