Home > @rushstack/node-core-library > FileSystem > writeFileAsync
FileSystem.writeFileAsync() method
An async version of FileSystem.writeFile().
Signature:
static writeFileAsync(filePath: string, contents: string | Buffer, options?: IFileSystemWriteFileOptions): Promise<void>;
Parameters
Parameter | Type | Description |
---|---|---|
filePath | string | |
contents | string | Buffer | |
options | IFileSystemWriteFileOptions | (Optional) |
Returns:
Promise<void>