@trainersky/light-db
Version:
Fully async JSON-based lightweight database
11 lines (10 loc) • 396 B
JavaScript
;
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = lightdb;
const storage_1 = __importDefault(require("./storage"));
function lightdb(dbName, dirPath = "db") {
return new storage_1.default(dirPath, dbName);
}