Function: stringify()

June 6, 2026 ยท View on GitHub

CTRF


CTRF / stringify

Function: stringify()

stringify(report, options?): string

Defined in: parse.ts:72

Parameters

report

CTRFReport

The CTRF report to serialize

options?

StringifyOptions = {}

Stringify options (pretty print, indent)

Returns

string

JSON string representation

Example

const json = stringify(report);

// Pretty print
const json = stringify(report, { pretty: true });

// Custom indent
const json = stringify(report, { pretty: true, indent: 4 });