+2
-2
| //#region src/index.d.ts | ||
| declare class MicroDB { | ||
| declare class MicroSQL { | ||
| private dir; | ||
@@ -20,2 +20,2 @@ constructor(dir: string); | ||
| //#endregion | ||
| export { MicroDB }; | ||
| export { MicroSQL }; |
+2
-2
@@ -5,3 +5,3 @@ import { existsSync, readFileSync, writeFileSync } from "node:fs"; | ||
| //#region src/index.ts | ||
| var MicroDB = class { | ||
| var MicroSQL = class { | ||
| dir; | ||
@@ -202,2 +202,2 @@ constructor(dir) { | ||
| //#endregion | ||
| export { MicroDB }; | ||
| export { MicroSQL }; |
+1
-1
| { | ||
| "name": "microsql", | ||
| "version": "0.0.1", | ||
| "version": "0.0.2", | ||
| "description": "A tiny file-based database for TypeScript and JavaScript projects.", | ||
@@ -5,0 +5,0 @@ "type": "module", |
+11
-11
@@ -1,10 +0,10 @@ | ||
| # MicroDB | ||
| # MicroSQL | ||
| > A lightweight, git-friendly SQL database that stores data as JSON files | ||
| **MicroDB** is a zero-dependency database engine for JavaScript/TypeScript projects. Run SQL-like queries on JSON files without SQLite, Postgres, or any database server. Perfect for open source projects where you want users to clone and run immediately. | ||
| **MicroSQL** is a zero-dependency database engine for JavaScript/TypeScript projects. Run SQL-like queries on JSON files without SQLite, Postgres, or any database server. Perfect for open source projects where you want users to clone and run immediately. | ||
| --- | ||
| ## Why MicroDB? | ||
| ## Why MicroSQL? | ||
@@ -14,3 +14,3 @@ - **Zero setup** - No database installation, no configuration files, just JSON | ||
| - **Zero dependencies** - Pure Node.js, works everywhere | ||
| - **Familiar syntax** - If you know SQL, you already know MicroDB | ||
| - **Familiar syntax** - If you know SQL, you already know MicroSQL | ||
@@ -22,3 +22,3 @@ --- | ||
| ```bash | ||
| npm install micro-db | ||
| npm install microsql | ||
| ``` | ||
@@ -29,3 +29,3 @@ | ||
| ```bash | ||
| pnpm add micro-db | ||
| pnpm add microsql | ||
| ``` | ||
@@ -38,5 +38,5 @@ | ||
| ```typescript | ||
| import { MicroDB } from "micro-db"; | ||
| import { MicroSQL } from "micro-db"; | ||
| const db = new MicroDB("./data"); | ||
| const db = new MicroSQL("./data"); | ||
@@ -84,3 +84,3 @@ db.query(`INSERT INTO users (id, name, age, city) VALUES (1, "Alice", 25, "Berlin")`); | ||
| ```typescript | ||
| const db = new MicroDB("./data"); | ||
| const db = new MicroSQL("./data"); | ||
@@ -124,3 +124,3 @@ db.query(`INSERT INTO products (id, name, price) VALUES (1, "Laptop", 999)`); | ||
| MicroDB is perfect for: | ||
| MicroSQL is perfect for: | ||
@@ -134,3 +134,3 @@ - **Open source projects** - Users can clone and run without database setup | ||
| ### When NOT to Use MicroDB | ||
| ### When NOT to Use MicroSQL | ||
@@ -137,0 +137,0 @@ - High-traffic production applications (no concurrency control) |
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
12711
0.1%