Read data
You can use the .read() method
db.read()
    .then((data) => {
        console.log(data);
    })
    .catch((err) => console.error(err))
It will read the entire file!
You can use the .read() method
db.read()
    .then((data) => {
        console.log(data);
    })
    .catch((err) => console.error(err))
It will read the entire file!