Skip to content

Commit

Permalink
Add Node 4 deprecation notice
Browse files Browse the repository at this point in the history
  • Loading branch information
SBoudrias committed Nov 12, 2017
1 parent a8ee5d0 commit 0f41188
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ Inquirer.js

A collection of common interactive command line user interfaces.

**Version 4.x** only supports Node 6 and over. For Node 4 support please use [version 3.x](https://github.com/SBoudrias/Inquirer.js/tree/v3.3.0).

## Table of Contents

1. [Documentation](#documentation)
Expand Down Expand Up @@ -53,7 +55,7 @@ npm install inquirer

```javascript
var inquirer = require('inquirer');
inquirer.prompt([/* Pass your questions in here */]).then(function (answers) {
inquirer.prompt([/* Pass your questions in here */]).then(answers => {
// Use user feedback for... whatever!!
});
```
Expand Down Expand Up @@ -131,7 +133,7 @@ Array values can be simple `strings`, or `objects` containing a `name` (to displ
var done = this.async();

// Do async stuff
setTimeout(() => {
setTimeout(function() {
if (typeof input !== 'number') {
// Pass the return value in the done callback
done('You need to provide a number');
Expand Down

0 comments on commit 0f41188

Please sign in to comment.