Skip to content

Commit

Permalink
Restore indentation.
Browse files Browse the repository at this point in the history
  • Loading branch information
satazor committed Jan 28, 2013
1 parent 99f7ea2 commit 3280514
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ Ask for a name:
```js
promptly.prompt('Name: ', function (err, value) {
// err is always null in this case, because no validators are set
console.log(value);
console.log('Name is:', value);
});
```

Expand All @@ -80,7 +80,7 @@ promptly.prompt('Name: ', { validator: validator }, function (err, value) {
err.retry();
}

console.log('Name is: ', value);
console.log('Name is:', value);
});
```

Expand All @@ -97,7 +97,7 @@ var validator = function (value) {

promptly.prompt('Name: ', { validator: validator , retry: true}, function (err, value) {
// err is always null because promptly will be prompting for a name until it validates
console.log('Name is: ', value);
console.log('Name is:', value);
});
```

Expand All @@ -108,15 +108,15 @@ Ask the user to confirm something.
Calls `fn` with `error` and `value` (true or false).

The available options are the same, except that `retry` defaults to `true`.
Truthy values are: `y`, `yes` and `1`.
Falsy values are `n`, `no`, and `0`.
Truthy values are: `y`, `yes` and `1`.
Falsy values are `n`, `no`, and `0`.
Comparison is made in case insensitive way.

Example usage:

```js
promptly.confirm('Are you sure? ', function (err, value) {
console.log('Answer: ', value);
console.log('Answer:', value);
});
```

Expand All @@ -132,7 +132,7 @@ Example usage:

```js
promptly.choose('Do you want an apple or an orange? ', ['apple', 'orange'], function (err, value) {
console.log('Answer: ', value);
console.log('Answer:', value);
});
```

Expand All @@ -148,7 +148,7 @@ Example usage:

```js
promptly.password('Type a password: ', function (err, value) {
console.log('Password is', value);
console.log('Password is:', value);
});
```

Expand Down

0 comments on commit 3280514

Please sign in to comment.