UNPKG

kiran-db

Version:

This is how javascript managa json data as the database

13 lines (12 loc) 390 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); } } exports.default = new Model('posts');