Function
stringify
(key: string, value: any)
Source from the content-addressed store, hash-verified
| 18 | |
| 19 | // Convert to a serializable representation. |
| 20 | function stringify(key: string, value: any): any { |
| 21 | return typeof value === "bigint" ? value.toString() : value instanceof Map ? [...value] : value; |
| 22 | } |
| 23 | |
| 24 | function runTests(inputRoot: string, outputRoot: string, filter: (name: string) => boolean = () => true) { |
| 25 | for (const name of readdirSync(inputRoot)) { |
Callers
nothing calls this directly
Tested by
no test coverage detected