mirror of
https://github.com/typicode/json-server.git
synced 2025-07-28 04:32:24 +08:00
save usage message, bumped version to 0.1.2
This commit is contained in:
@ -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();
|
||||
|
Reference in New Issue
Block a user