Skip to content

fileContentEqual

fileContentEqual(path, data, options?): Promise<boolean>

Defined in: packages/node/src/fs/file-content-equal.ts:28

Compares the content of a file with the provided data.

PathLike

The path to the file to compare.

Buffer

The data to compare with the file content.

FileContentEqualOptions

Options for the file comparison.

Promise<boolean>

True if the file content is equal to the provided data, false otherwise.