UNPKG

kiran-db

Version:

This is how javascript managa json data as the database

16 lines (15 loc) 448 B
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); const DB_1 = __importDefault(require("../DB")); class Model extends DB_1.default { constructor(name) { super(name); } getlatest() { return this.read().pop(); } } exports.default = new Model('users');