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
|
```js
|
||||||
sourceFile = readlineSync.questionPath('Read from :', {
|
sourceFile = readlineSync.questionPath('Read from :', {
|
||||||
isFile: true,
|
isFile: true
|
||||||
exists: true
|
|
||||||
});
|
});
|
||||||
console.log('-- sourceFile: ' + sourceFile);
|
console.log('-- sourceFile: ' + sourceFile);
|
||||||
|
|
||||||
saveDir = readlineSync.questionPath('Save to :', {
|
saveDir = readlineSync.questionPath('Save to :', {
|
||||||
isDirectory: true,
|
isDirectory: true,
|
||||||
|
exists: null,
|
||||||
create: true
|
create: true
|
||||||
});
|
});
|
||||||
console.log('-- saveDir: ' + saveDir);
|
console.log('-- saveDir: ' + saveDir);
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "readline-sync",
|
"name": "readline-sync",
|
||||||
"version": "1.2.9",
|
"version": "1.2.10",
|
||||||
"title": "readlineSync",
|
"title": "readlineSync",
|
||||||
"description": "Synchronous Readline for interactively running to have a conversation with the user via a console(TTY).",
|
"description": "Synchronous Readline for interactively running to have a conversation with the user via a console(TTY).",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
|
|
Loading…
Reference in a new issue