const { Database } =require("esosdb");const { connect } =require("@esosdb/utils");constdb=newDatabase({ path:"./esosdb/db.json",//you can write the path of any file you want space:2//it's about readability cf. **})connect(db)// other imports must be under connect()
ESM module example
import { Database } from"esosdb";import { connect } from"@esosdb/utils";constdb=newDatabase({ path:"./esosdb/db.json", space:2//it's about readability cf. **})connect(db)//other imports must be under connect()