Socket
Socket
Sign inDemoInstall

bozkurtdb

Package Overview
Dependencies
0
Maintainers
2
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    bozkurtdb

A simple and useful database package.


Version published
Weekly downloads
119
decreased by-29.59%
Maintainers
2
Created
Weekly downloads
 

Readme

Source

BOZKURTDB A simple and useful jsondb package.

Usage

const bozkurtdb = require("./index");
const db = bozkurtdb.connect();
bozkurtdb.settings({ parse: true })
db.set("hello", "world"); // world
db.get("hello"); // world

db.set("money", 100); // 100
db.add("money", 200); // 300

db.set("list", ["apple", "orange"]); // ['apple', 'orange'];
db.push("lemon"); // ['apple', 'orange', 'lemon']
db.unpush("orange"); // ['apple', 'lemon']
db.unpushLength("list", 0); // ['lemon']

db.set("user", "axe", true); // boolean (true / false)
db.set("user", "pickaxe", false); //boolean (true / false)

db.set("blacklisted", false); //boolean (true / false)

db.type("list"); // type (boolean / object / string / number)
db.type("user"); // type (boolean / object / string / number)
db.type("hello"); // type (boolean / object / string / number)
db.type("money"); // type (boolean / object / string / number)
db.type("blacklisted"); // type (boolean / object / string / number)

db.has("hello"); // boolean (true / false)
db.has("donkey"); // boolean (true / false)

db.delete("list"); // boolean (true / false)
db.deleteAll(); // boolean (true / false)

Keywords

FAQs

Last updated on 01 May 2024

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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