mirror of
https://github.com/dec0dOS/zero-ui.git
synced 2024-11-10 17:35:08 +08:00
6 lines
183 B
JavaScript
6 lines
183 B
JavaScript
import low from "lowdb";
|
|
import FileSync from "lowdb/adapters/FileSync.js";
|
|
|
|
const adapter = new FileSync(process.env.ZU_DATAPATH || "data/db.json");
|
|
|
|
export const db = low(adapter);
|