New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

whisky.db

Package Overview
Dependencies
Maintainers
0
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

whisky.db

Json tabanlı database.

  • 0.1.6
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
36
increased by200%
Maintainers
0
Weekly downloads
 
Created
Source

İlk önce modülü indiriyoruz.

npm i whisky.db

Modülü tanımlıyoruz.

const dbModule = require("whisky.db")
const db = new dbModule.createDatabase()
//Sizin için bir JSON dosyası'da açar.

Kullanımlar / Usages

const dbModule = require("whisky.db")
const db = new dbModule.createDatabase()

db.set("developer", "whisky") // { "developer": "whisky" }

db.get("developer") // whisky

db.has("developer") // true

db.push("test_array", "Test") // { "test_array": [ "Test" ] }

db.add("numbers", 1) // { "numbers": 1 }
db.add("numbers", 28) // { "numbers": 29 }

db.substract("numbers", 17) // { "numbers": 12 }

db.delete("numbers") // Veri silindi. - Data deleted.

db.all() // [ { ID: "developer", data: "whisky" }, { ID: "test_array", data: [ "Test" ] } ]

db.deleteAll("CONFIRM") // Tüm veriyi silmek için CONFIRM yazmalısınız. - You must type CONFIRM to delete all data.

Keywords

FAQs

Package last updated on 08 Nov 2024

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc