Home > @infiniteobjects/core-library-node > FileSystem > writeYaml
Stringify and write YAML to a file atomically, replacing the file if it already exists.
Signature:
static writeYaml(filepath: string, data: unknown, options?: YamlCastOptions): Promise<void>;
Parameter | Type | Description |
---|---|---|
filepath | string | |
data | unknown | |
options | YamlCastOptions | (Optional) |
Returns:
Promise<void>
Creates directories for you as needed.