diff --git a/jsondb.js b/jsondb.js index 68fa8d8..5d147cc 100644 --- a/jsondb.js +++ b/jsondb.js @@ -6,7 +6,7 @@ let db = { }; module.exports = function(name){ - this.file = name+".json"; + this.file = "./"+name+".json"; this.json = db; this.get = function(){