Move file.json to data dir
This commit is contained in:
parent
e32c976d87
commit
7438573c49
@ -1,7 +1,7 @@
|
|||||||
const { LowSync } = require('lowdb');
|
const { LowSync } = require('lowdb');
|
||||||
const { JSONFileSync } = require('lowdb/node');
|
const { JSONFileSync } = require('lowdb/node');
|
||||||
|
|
||||||
const db = new LowSync(new JSONFileSync('file.json'), {})
|
const db = new LowSync(new JSONFileSync('data/file.json'), {})
|
||||||
|
|
||||||
const { createServer } = require('node:http');
|
const { createServer } = require('node:http');
|
||||||
import * as http from 'node:http';
|
import * as http from 'node:http';
|
||||||
|
Loading…
Reference in New Issue
Block a user