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

Method constructor

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

Source from the content-addressed store, hash-verified

4
5export class JSONFile<T> extends DataFile<T> {
6 constructor(filename: PathLike) {
7 super(filename, {
8 parse: JSON.parse,
9 stringify: (data: T) => JSON.stringify(data, null, 2),
10 })
11 }
12}
13
14export class JSONFileSync<T> extends DataFileSync<T> {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected