toge-db 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -19,7 +19,13 @@ Toge-DB is a lightweight JSON-based database with a simple ORM (Object-Relationa
19
19
  ---
20
20
  ## CLI Usage
21
21
 
22
- TogeDB comes with a raw CLI that supports SQL-like queries. You can start the CLI by running `npm run toge-start`.
22
+ TogeDB comes with a raw CLI that supports SQL-like queries. After installing the library, you can easily start the CLI using `npx`:
23
+
24
+ ```bash
25
+ npx toge-db
26
+ ```
27
+
28
+ Or, if you are developing within the `toge-db` repository, you can run `npm run toge-start`.
23
29
 
24
30
  ### Authentication
25
31
  Please set the in .env file with the following credentials:
package/bin/toge-db.js ADDED
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env node
2
+
3
+ import { Storage, Parser, CLI } from '../index.js';
4
+
5
+ const storage = new Storage();
6
+ const parser = new Parser(storage);
7
+ const cli = new CLI(parser);
8
+ cli.start();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "toge-db",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Toge-DB is a lightweight JSON-based database with a simple ORM (Object-Relational Mapping) layer. It is specifically designed to be highly suitable for rapid prototyping and offline applications, such as those built with Electron or other JavaScript frameworks. This documentation explains how to define models, perform queries, and manage data using the TogeORM.\n",
5
5
  "keywords": [
6
6
  "database",
@@ -10,6 +10,9 @@
10
10
  "author": "Revtm",
11
11
  "type": "module",
12
12
  "main": "index.js",
13
+ "bin": {
14
+ "toge-db": "bin/toge-db.js"
15
+ },
13
16
  "scripts": {
14
17
  "toge-start": "node index.js",
15
18
  "toge-test": "node test.js"