A lightweight local JSON database for Deno

A lightweight local JSON database for Deno

FileDB A lightweight local JSON database for Deno

FileDB

⚡ A lightweight local JSON database for Deno.

Usage

For more examples, please go to example folder.

// main.ts
import { FileDB, Model } from "https://raw.githubusercontent.com/jswildcards/filedb/main/mod.ts";

// define User collection
interface User extends Model {
  username?: string;
}

// create a new FileDB instance
const db = new FileDB();

// get User collection
const users = db.get<User>("users");
console.log(users.get());

// Insert records
const id1 = users.insert({ username: "jswildcards" });
const id2 = users.insert({ username: "jswildcards" });
db.save();
// find by Username
console.log(users.find({ username: "jswildcards" }));

// Update records
users.update(id1, { username: "ocodepoem" });
db.save();
// find by Username
console.log(users.find({ username: "jswildcards" }));

// Delete record
users.delete(id2);
db.save();
// find All User
console.log(users.get());

Download Details:

Author: jswildcards

Source Code: https://github.com/jswildcards/filedb

deno node nodejs javascript

Bootstrap 5 Complete Course with Examples

Bootstrap 5 Tutorial - Bootstrap 5 Crash Course for Beginners

Nest.JS Tutorial for Beginners

Hello Vue 3: A First Look at Vue 3 and the Composition API

Building a simple Applications with Vue 3

Deno Crash Course: Explore Deno and Create a full REST API with Deno

How to Build a Real-time Chat App with Deno and WebSockets

Convert HTML to Markdown Online

HTML entity encoder decoder Online

AEM Querybuilder for JavaScript (Browser, Node, Deno)

Helix Querybuilder .AEM Querybuilder for JavaScript (Browser, Node, Deno)

NKeys for JavaScript - Node.js, Browsers, and Deno

A public-key signature system based on Ed25519 for the NATS ecosystem system for JavaScript. The nkeys.js library works in Deno, Node.js, and the browser!

Javascript module for easily generating mazes,compatible with both Deno and Node

A work-in-progress Javascript maze generator module, compatible with both Deno and Node.

What is Deno? The Node.JS Killer? The Deno-minator to Node?

What is Deno? The Node.JS Killer? The Deno-minator to Node? Deno is the new hype and will it be better than node.js? Deno is a secure runtime for JavaScript and TypeScript that is based on the V8 JavaScript engine and the Rust programming language that addresses Node’s shortcomings

What is Deno and is Node.js Dying? | Deno vs Node

What is Deno? Deno vs Node. Is Node.js going to die? Deno is a runtime for JavaScript and TypeScript that is based on the V8 JavaScript engine and the Rust programming language. It was created by Ryan Dahl, original creator of Node.js, and is focused on productivity. It was announced by Dahl in 2018 during his talk "10 Things I Regret About Node.js"