Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

comfydb

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

comfydb - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

2

package.json
{
"name": "comfydb",
"version": "2.0.0",
"version": "2.0.1",
"description": "Comfiest Way To Use A Database!",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -11,16 +11,13 @@ # ComfyDB

```javascript
const ComfyDB = require( "comfydb" );
await ComfyDB.Connect();
await ComfyDB.Store( "user1", { username: "Instafluff", profile: "Comfiest Coder and Mug Chef!", cakes: 0 } );
await ComfyDB.Store( "user2", { username: "Fluffington", profile: "Fluffy, Yellow, Hamsterbear.", cakes: 0 } );
await ComfyDB.Get( "user1" );
let user1 = await ComfyDB.Get( "user1" );
await ComfyDB.Search( { sortBy: "createdAt", sort: "desc", limit: 5, start: 10, where: { author: { beginsWith: "instaf" } } }, "blog-posts" );
await ComfyDB.Count( { where: { text: { contains: "lasagna" } } }, "blog-posts" );
await ComfyDB.Increment( "cakes", { by: 2, where: { username: { equals: "instafluff" } } } );
await ComfyDB.Decrement( "hitpoints", { by: 30, where: { party: { equals: "A" } } }, "game-stats" );
let users = await ComfyDB.Search( { sortBy: "createdAt", where: { username: { contains: "fluff" } } } );
ComfyDB.Close();
await ComfyDB.Delete( "item_42" );
await ComfyDB.DeleteAll( { where: { isEnemy: { is: true }, hitpoints: { "<": 0 } } }, "game-stats" );
```

@@ -55,2 +52,3 @@

const ComfyDB = require( "comfydb" );
// Wrap in async for back-compat in case top-level async/await is not supported
(async () => {

@@ -57,0 +55,0 @@ try {

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc