First upload version 0.0.1
This commit is contained in:
17
node_modules/lowdb/lib/adapters/node/JSONFile.js
generated
vendored
Normal file
17
node_modules/lowdb/lib/adapters/node/JSONFile.js
generated
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
import { DataFile, DataFileSync } from './DataFile.js';
|
||||
export class JSONFile extends DataFile {
|
||||
constructor(filename) {
|
||||
super(filename, {
|
||||
parse: JSON.parse,
|
||||
stringify: (data) => JSON.stringify(data, null, 2),
|
||||
});
|
||||
}
|
||||
}
|
||||
export class JSONFileSync extends DataFileSync {
|
||||
constructor(filename) {
|
||||
super(filename, {
|
||||
parse: JSON.parse,
|
||||
stringify: (data) => JSON.stringify(data, null, 2),
|
||||
});
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user