Inquirer.js

A collection of common interactive command line user interfaces.

MIT License

Downloads
263.1M
Stars
19.4K
Committers
229

Bot releases are hidden (Show)

Inquirer.js -

Published by SBoudrias over 8 years ago

Fixes

  • Fix bug where inquirer would overwrite properties on the options passed in. Now we're making sure to not mutate your originals objects.
  • On the checkbox prompt, we're now only hiding the help message once the user click the space key instead of any keys.
  • Drop readline2 in favor of Node core version. This might fix some edge cases some users on windows encountered.
Inquirer.js - v1.0.0 - Rosebud

Published by SBoudrias over 8 years ago

Say hello to promises!

The whole inquirer API is now based on promises!

  • The base API interface is now inquirer.prompt(questions).then(). There's no more callback function.
  • Any async question functions is taking a promise as return value instead of requiring this.async().

Breaking changes

  • filter is now always run before validate #122
  • inquirer.prompt doesn't take a callback argument anymore

Bug fixes

  • Fixed list not displayed disabled options correctly #321

And various other minor fixes and cleanup to the code base.

Inquirer.js -

Published by SBoudrias over 8 years ago

  • List prompts can now be navigated using Emacs bindings
  • expand prompt now use the short question property to display inline after a choice is selected
  • Bump and internal cleanup
Inquirer.js -

Published by SBoudrias over 8 years ago

  • Fix error on environment where cli-width return 0 (we're now defaulting to 80 chars width)
Inquirer.js -

Published by SBoudrias almost 9 years ago

  • Fix bug with astral symbols not being calculated correctly in the width of a line
  • expand prompt now trim the whitespace around the answer
Inquirer.js -

Published by SBoudrias almost 9 years ago

  • Some display fixes on Windows (mainly) and Unix system.
  • Internal refactoring of the rendering logic.
Inquirer.js -

Published by SBoudrias almost 9 years ago

Fix list overflow bug when the list contains separators.

Inquirer.js -

Published by SBoudrias almost 9 years ago

  • Choices object now take an optional short property that'll be use in the prompt summary after a user selected choice.
  • Fix bug if using a terminal without defined width (we're now defaulting to 80 chars in that case)
Inquirer.js -

Published by SBoudrias about 9 years ago

  • Fix the bottom bar functionality
  • Minor code cleanup
Inquirer.js -

Published by SBoudrias about 9 years ago

New feature

Bug fix

  • Fix #276 and #209: adding a new observer to the process won't duplicate the prompts (basically the prompt processing queue is now a hot observable).
Inquirer.js -

Published by SBoudrias over 9 years ago

Fix issue with cursor position in the input prompt.

Inquirer.js -

Published by SBoudrias over 9 years ago

This is not a huge release feature wise. It's been mostly a huge internal refactoring of our rendering system. This is all done with the hope of moving towards a 1.0 release where we'll have a stronger Prompt API allowing the creation of custom prompts.

In the meantime, included in 0.9:

  1. Fix a lot of issues with natural line returns messing inquirer.js prompt re-rendering.
  2. The validate function now takes the list of current answers as arguments. #198
Inquirer.js -

Published by SBoudrias over 9 years ago

  • More consistent handling of the checkboxes checked param if the value is truthy (before the option would be checked but not selected) - #242
Inquirer.js -

Published by SBoudrias over 9 years ago

  • when prompt option can now simply be a boolean value (before it needed to be a function).
Inquirer.js -

Published by SBoudrias over 9 years ago

  • Revert usage of ttys module that was breaking Windows or non ttys terminals.

This release is really just a fix for version 0.8.1.

Inquirer.js -

Published by SBoudrias over 9 years ago

  • use ttys module for a more reliable stdout.
  • Remove/cleanup some dependencies for faster load time.
Inquirer.js -

Published by SBoudrias about 10 years ago

New Feature

Add inquirer.createPromptModule() who return a self contained inquirer.prompt method. This allow to decouple multiple interfaces who could rely on inquirer.prompt and different sets of prompts.

Example usage:

var prompt = inquirer.createPromptModule();

prompt.registerPrompt('long-list', LongListPrompt);

prompt([{
  type: 'long-list',
  message: 'Choose a menu item',
  choices: [ /* etc */ ]
}], callback);
Inquirer.js -

Published by SBoudrias about 10 years ago

Bug fix

  • Correctly detect when to add a : to the end of a question phrase if it the question contains color codes.
Inquirer.js -

Published by SBoudrias about 10 years ago

Bug

  • Update checkbox icons (some people had issue with their terminal fonts)

Feature

  • message can now also be a function
Inquirer.js -

Published by SBoudrias about 10 years ago

  • Fix bug with checkbox prompt validation