Socket
Book a DemoInstallSign in
Socket

filebased-db

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

filebased-db

a databse using .json files

1.0.1
latest
npmnpm
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

filebased-db

this db is file based there is a folder called DB it will be your source, renaming it will make it unkowen there is a max of 250 files for this db, db.all() will return an array of the data. here is the test command

const db = require('filebased-db')
db.set('ok', 'bruh') // sets ok to bruh
db.set('19', 'bruh') // sets 19 to bruh
db.set('195', 'bruh5') // sets 195 to bruh5
const d = db.get('19') // defines it
console.log(d) // logs it
// db.deletef('19') // wont work if in vsc windows.
const data = db.all() // returns [{ name: '19', value: 'bruh', timeStamp: '1619549120251' }, { name: 'ok', value: 'bruh', timeStamp: '161954912025' }] an ARRAY
console.log(data)
console.log('there are ' + data.length + ' value(s) stored')

more features will be stored but here is an exapmple of the data being displayed

{ "name": "19", "value": "bruh", "timeStamp": "161954912025" }

all data is stored in .json if you encounter an error, contact me on discord at: NeonGamerBot_QK#1001

Keywords

db

FAQs

Package last updated on 27 Apr 2021

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.