From f47852a9e261763b8296572e978f8e07b2eea375 Mon Sep 17 00:00:00 2001 From: Louis Chatriot Date: Sat, 28 Dec 2013 10:42:19 +0100 Subject: [PATCH] Update README.md --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index e48fbb8..9ef32f7 100644 --- a/README.md +++ b/README.md @@ -74,7 +74,8 @@ var Datastore = require('nedb') // Type 4: Persistent datastore for a Node Webkit app called 'nwtest' // For example on Linux, the datafile will be ~/.config/nwtest/nedb-data/something.db var Datastore = require('nedb') - , db = new Datastore({ filename: 'something.db', nodeWebkitAppName: 'nwtest' }); + , path = require('path') + , db = new Datastore({ filename: path.join(require('nw.gui').App.dataPath, '/something.db') }); // Of course you can create multiple datastores if you need several