GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - DaisyDogs07/SimpleDatabase: A simple database using fs

BranchesTags
Open more actions menu

Latest commit

 

History

213 Commits
213 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
.gitignore
.gitignore
 
 
README.md
README.md
 
 
index.d.ts
index.d.ts
 
 
index.js
index.js
 
 
package-lock.json
package-lock.json
 
 
package.json
package.json
 
 

Repository files navigation

Welcome!

This is my simple database, A database that uses fs.

Install

npm i github:DaisyDogs07/SimpleDatabase

Setup

const Database = require('SimpleDatabase');
const database = new Database();

Database Parameters

  • Location: The location of the Database file

Methods

set(path[, value])

Sets a JSON value to the new value

  • Path: the path to the JSON key
  • Value: The value to set
  • Returns: A reference to the Database

delete(path)

Deletes a JSON key

  • Path: The path to the JSON key
  • Returns: A reference to the Database

get([path])

Gets the specified JSON key's value

  • Path: The path to the JSON key
  • Returns: The JSON value of the JSON key

has(path)

Checks if a JSON key exists

  • Path: The path to the JSON key
  • Returns: boolean

find(path, fn)

Finds a JSON key

  • Path: The scope of where to look
  • Fn: The function to test with
  • Returns: The value that succeeded in the test, 'undefined' if none were successful

findAll(path, fn)

Finds JSON keys

  • Path: The scope of where to look
  • Fn: The function to test with
  • Returns: An array of values that succeeded in the test, 'undefined' if none were successful

read()

Reads the JSON Object from the database file

  • Returns: The JSON object

About

A simple database using fs

Topics

databasesimple

Resources

Readme
Activity

Stars

4 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.