MCPcopy Create free account
hub / github.com/typicode/lowdb / constructor

Method constructor

src/adapters/node/JSONFile.ts:15–20  ·  view source on GitHub ↗
(filename: PathLike)

Source from the content-addressed store, hash-verified

13
14export class JSONFileSync<T> extends DataFileSync<T> {
15 constructor(filename: PathLike) {
16 super(filename, {
17 parse: JSON.parse,
18 stringify: (data: T) => JSON.stringify(data, null, 2),
19 })
20 }
21}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected