Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Update travis runtimes.

  • Loading branch information...
commit db401907d04db2a9506b9855125dbcae52451cbf 1 parent 8e71d18
@satazor satazor authored
Showing with 10 additions and 10 deletions.
  1. +2 −2 .travis.yml
  2. +8 −8 README.md
View
4 .travis.yml
@@ -1,4 +1,4 @@
language: node_js
node_js:
- - 0.7
- - 0.8
+ - "0.10"
+ - "0.8"
View
16 README.md
@@ -1,22 +1,22 @@
-# promptly #
+# promptly
---
[![Build Status](https://secure.travis-ci.org/IndigoUnited/node-promptly.png)](http://travis-ci.org/IndigoUnited/node-promptly.png)
Simple command line prompting utility.
-## Installation ##
+## Installation
`$ npm install promptly`
-## API ##
+## API
Note that the `options` argument is optional for all the commands.
-### .prompt(message, opts, fn) ###
+### .prompt(message, opts, fn)
Prompts for a value, printing the `message` and waiting for the input.
When done, calls `fn` with `error` and `value`.
@@ -105,7 +105,7 @@ promptly.prompt('Name: ', { validator: validator, retry: false }, function (err,
});
```
-### .confirm(message, opts, fn) ###
+### .confirm(message, opts, fn)
Ask the user to confirm something.
Calls `fn` with `error` and `value` (true or false).
@@ -123,7 +123,7 @@ promptly.confirm('Are you sure? ', function (err, value) {
```
-### .choose(message, choices, opts, fn) ###
+### .choose(message, choices, opts, fn)
Ask the user to choose between multiple `choices` (array of choices).
Calls `fn` with `error` and `value`.
@@ -137,7 +137,7 @@ promptly.choose('Do you want an apple or an orange? ', ['apple', 'orange'], func
```
-### .password(message, opts, fn) ###
+### .password(message, opts, fn)
Prompts for a password, printing the `message` and waiting for the input.
When available, calls `fn` with `error` and `value`.
@@ -153,6 +153,6 @@ promptly.password('Type a password: ', function (err, value) {
```
-## License ##
+## License
Released under the [MIT License](http://www.opensource.org/licenses/mit-license.php).
Please sign in to comment.
Something went wrong with that request. Please try again.