save usage message, bumped version to 0.1.2

This commit is contained in:
Gleb Bahmutov
2013-12-21 15:46:30 -05:00
parent 94cd435677
commit 94b0718804
2 changed files with 3 additions and 1 deletions

View File

@ -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();

View File

@ -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",