Skip to content

stringify

Type: in-memory codecs (async)

Serialize YAML or CSV without touching the filesystem. Not gated by the script file settings. Use built-in JSON.stringify for JSON.

hc.stringify.csv(rows, options?)

Available since v2.0.0

Signature:(rows: object[] | string[][], options?: object) => Promise<string>

Options match hc.fs.writeCsv.

hc.stringify.yaml(value)

Available since v2.0.0

Signature:(value: any) => Promise<string>

hc.stringify.yaml(value) scripting API.