Fix: some sample codes
This commit is contained in:
parent
5b33a7679c
commit
0c9ee33072
2 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||
|
|
|
@ -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": [
|
||||
|
|
Loading…
Reference in a new issue