Socket
Socket
Sign inDemoInstall

tydb

Package Overview
Dependencies
79
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.1.3 to 0.1.5

configs.tydb.ts

10

package.json
{
"name": "tydb",
"version": "0.1.3",
"description": "An Abstraction layer for mongodb for ease of use with TypeScript",
"version": "0.1.5",
"description": "Strongly-typed, NoSQL, fast, light-weight, embedded, Mongo-like database with built-in ODM.",
"main": "./dist/index.js",

@@ -41,3 +41,5 @@ "types": "./dist/index.d.ts",

"ow": "^0.17.0",
"p-queue": "^6.3.0"
"p-queue": "^6.3.0",
"ts-node": "^8.8.2",
"typescript": "^3.8.3"
},

@@ -61,7 +63,5 @@ "devDependencies": {

"rollup-plugin-add-shebang": "^0.3.1",
"ts-node": "^8.8.2",
"tslib": "^1.11.1",
"typescript": "^3.8.3",
"underscore": "^1.10.2"
}
}

@@ -7,6 +7,20 @@ <p align="center">

Strongly-typed, NoSQL, fast, light-weight, embedded, Mongo-like database with built-in ODM.
### TyDB
- It is a NoSQL database.
- It is called **TyDB** since it's strongly typed & written in **Typescript**.
- Strong typing is enforced over the query & the update operators.
- It is very similar to MongoDB (almost identical).
- Written purely in Typescript.
- It can run in NodeJS ([Demo](https://runkit.com/alexcorvi/tydb-example)).
- It can run in the browser ([Demo](https://jsfiddle.net/alexcorvi/gwq53jfm/)).
- It is light weight (45KB).
- It can be persistent.
- It can be in-memory-only.
- It can be embedded.
- It can be over-the-network.
- It has a built-in object mapping (ODM).
[Documentation & Getting started](https://alex-corvi.gitbook.io/tydb/)
[License: MIT](https://github.com/alexcorvi/tydb/blob/master/LICENSE.MD)

@@ -78,4 +78,5 @@ import resolve from "@rollup/plugin-node-resolve";

"fastify-cors",
"ts-node",
],
},
];

@@ -1,2 +0,1 @@

import { FS_Persistence_Adapter } from "./adapters/fs-adapter";
import { Database, DatabaseConfigurations } from "./database";

@@ -8,2 +7,9 @@ import fastify from "fastify";

import * as path from "path";
import { register as tsNodeReg } from "ts-node";
if ((process as any)[Symbol.for("ts-node.register.instance")]) {
// if we're already in ts-node do not attempt to register
} else {
// only register if we're running directly on node
tsNodeReg();
}

@@ -21,3 +27,3 @@ interface ConfigFile {

let configFile = process.argv.find((x) => x.endsWith(".db.js"));
let configFile = process.argv.find((x) => x.endsWith(".tydb.ts"));
let configs: ConfigFile | null = null;

@@ -29,3 +35,3 @@

console.error(
`Error: Must be given a single argument, that is a file ending with ".db.js"`
`Error: Must be given a single argument, that is a file ending with ".tydb.ts"`
);

@@ -32,0 +38,0 @@ process.exit(1);

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc