diff --git a/bin/cli.js b/bin/cli.js index 8855e9a..26e78af 100755 --- a/bin/cli.js +++ b/bin/cli.js @@ -36,6 +36,8 @@ function saveDbOnCommand(app) { process.stdin.resume(); process.stdin.setEncoding('utf8'); + console.log('type "s then ENTER" to save live database at any moment'); + process.stdin.on('data', function (userInput) { if (userInput.trim().toLowerCase() == 's') { var liveDB = app.db(); diff --git a/package.json b/package.json index 567e92f..ee9edf7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "json-server", - "version": "0.1.0", + "version": "0.1.2", "description": "Serves JSON files through REST routes.", "main": "server.js", "bin": "./bin/cli.js",