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();
|
||||
|
@ -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",
|
||||
|
Reference in New Issue
Block a user