Creating Lowdb in Javascript
working fine, I have searched in net, couldn't find proper(as per beginner's understanding) solution.
creating lowdb
using Js
const low = require('lowdb')
const FileSync = require('lowdb/adapters/FileSync')
var customerpath = process.env.APPDATA+'/VEGFRUIT/Customer.json';
const cusadapter1 = new FileSync(customerpath)
const db = low(cusadapter1)
db.defaults({ customer: [{}]}).write();
how to convert above set of coding into Tyepscript
?
1) perform this command
2) this brief example class shows how to use lowdb in a typescript way