mirror of
https://github.com/typicode/json-server.git
synced 2025-07-28 12:43:18 +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.resume();
|
||||||
process.stdin.setEncoding('utf8');
|
process.stdin.setEncoding('utf8');
|
||||||
|
console.log('type "s then ENTER" to save live database at any moment');
|
||||||
|
|
||||||
process.stdin.on('data', function (userInput) {
|
process.stdin.on('data', function (userInput) {
|
||||||
if (userInput.trim().toLowerCase() == 's') {
|
if (userInput.trim().toLowerCase() == 's') {
|
||||||
var liveDB = app.db();
|
var liveDB = app.db();
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "json-server",
|
"name": "json-server",
|
||||||
"version": "0.1.0",
|
"version": "0.1.2",
|
||||||
"description": "Serves JSON files through REST routes.",
|
"description": "Serves JSON files through REST routes.",
|
||||||
"main": "server.js",
|
"main": "server.js",
|
||||||
"bin": "./bin/cli.js",
|
"bin": "./bin/cli.js",
|
||||||
|
Reference in New Issue
Block a user