fs-table
v1.0.0
Published
file object, for saving values such as strings, numbers and other objects
Downloads
1
Readme
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 👍