small change README.md
This commit is contained in:
parent
eeb0770459
commit
6e2b8c8d3f
1 changed files with 2 additions and 1 deletions
|
@ -30,7 +30,8 @@ This is converted to string (i.e. `toString` method is called) before it is disp
|
|||
For example: like bash `[foo-directory]# `
|
||||
|
||||
```js
|
||||
readlineSync.setPrompt({toString: function() {return '[' + require('path').basename(process.cwd()) + ']# '; }})
|
||||
readlineSync.setPrompt({toString:
|
||||
function() { return '[' + require('path').basename(process.cwd()) + ']# '; }})
|
||||
```
|
||||
|
||||
### prompt
|
||||
|
|
Loading…
Reference in a new issue