diff --git a/README.md b/README.md index 021b320..429af30 100644 --- a/README.md +++ b/README.md @@ -785,13 +785,13 @@ For example: ```js sourceFile = readlineSync.questionPath('Read from :', { - isFile: true, - exists: true + isFile: true }); console.log('-- sourceFile: ' + sourceFile); saveDir = readlineSync.questionPath('Save to :', { isDirectory: true, + exists: null, create: true }); console.log('-- saveDir: ' + saveDir); diff --git a/package.json b/package.json index deb0ebd..678ca12 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "readline-sync", - "version": "1.2.9", + "version": "1.2.10", "title": "readlineSync", "description": "Synchronous Readline for interactively running to have a conversation with the user via a console(TTY).", "keywords": [