1.0.0 • Published 2 years ago

fs-table v1.0.0

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

fs-table

this package is an object database which uses the file system

this package mainly uses the fs module to store data

installing

# for any npm versions

npm install fs-table

usage example

const fstable = require('fs-table')
const myObject = fstable('giorno giovanna', {
	file: 'myvalues.json', // file name to write
	array: false // actually useless
})

myObject.strength++; // usually dont add to the db file instantly
console.log(myObject.strength) // in the first run, there's a high chance it will print null

docs

our variables for this thread will be:

fstable = require("fs-table")

fstable(key[OPTIONAL], options[OPTIONAL])

  • Returns: db object

note

mit lincense 👍

1.0.0

2 years ago