Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
heapwolf committed Mar 1, 2015
1 parent b9a07e7 commit 5d5bc51
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion README.md
@@ -1,7 +1,7 @@
# SYNOPSIS
A sync prompt for node. very simple. no C++ bindings and no bash scripts.

# USAGE
# BASIC MODE
```js

//
Expand All @@ -20,3 +20,10 @@ var n = prompt();
process.stdout.write(n + ' is ' + n + 'times too many');
```

# SECRET MODE

```js
process.stdin.setRawMode(true)
process.stdout.write('password>')
var password = prompt('\u000D')
```

0 comments on commit 5d5bc51

Please sign in to comment.