Socket
Socket
Sign inDemoInstall

enquirer

Package Overview
Dependencies
1
Maintainers
2
Versions
37
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install
Previous134Next

2.1.1

Diff

jonschlinkert
published 2.1.0 •

Changelog

Source

2.1.0 - 2018-11-29

Fixed

  • Several improvements were made for handling custom format, result and initial functions defined on the options.
jonschlinkert
published 2.0.9 •

jonschlinkert
published 2.0.8 •

jonschlinkert
published 2.0.7 •

Changelog

Source

2.0.7 - 2018-11-14

Fixed

  • validate function now properly accepts false as a return value, thanks to @g-plane.

Added

  • Adds support for <kbd>ctrl</kbd>+<kbd>n</kbd> to add choices
  • Adds support for options.required on all prompts. Uses the built-in validate() function, allowing this functionality to be overridden or customized.
  • Adds support for options.scroll to disable scrolling in array prompts.
  • Adds support for options.onRun, which is called when prompt.run() is called, after the readline instance is created.
  • Adds support for options.history on the Input and Text prompts.
  • Adds support for options.term to set the terminal, thanks to @tunnckoCore. At the moment this is only used in a couple of edge cases with the Survey and Scale prompts to check if the terminal is Hyper.
  • options.skip may now be a Boolean, thanks to @tunnckoCore
jonschlinkert
published 2.0.6 •

jonschlinkert
published 2.0.5 •

jonschlinkert
published 2.0.4 •

jonschlinkert
published 2.0.3 •

jonschlinkert
published 2.0.2 •

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc