Skip to content

BeechCMS


BeechCMS / @beechcms/core / canonicalStringify

Function: canonicalStringify() ​

canonicalStringify(value): string

Serializes any value to its canonical form: keys sorted, two-space indentation, trailing newline. Stable across key insertion order and across authoring order.

Parameters ​

value ​

unknown

Returns ​

string