var ws = fs.createWriteStream('output.txt');
db.dump(ws).then(function (res) {
// res should be {ok: true}
});
what is fs in above code. for me error showing as fs is not defined.
below is my code I have modified..
var db=new PouchDB('company_details');
function dumpdata(){
var ws = fs.createWriteStream('file:///C:/xampp/htdocs/sevenadmin/db/output.txt');
db.dump(ws).then(function (res) {
//res should be {ok: true}
});
}
what is fs in above code. for me error showing as fs is not defined. below is my code I have modified..