You can setup using with commonjs and ESM module
const { Database } = require("esosdb"); const db = new Database({ path: "./esosdb/db.json",//you can write the path of any file you want space: 2//it's about readability cf. ** })
import { Database } from "esosdb"; const db = new Database({ path: "./esosdb/db.json", space: 2//it's about readability cf. ** })
Last updated 1 year ago