Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@inquirer/input

Package Overview
Dependencies
Maintainers
3
Versions
82
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@inquirer/input - npm Package Compare versions

Comparing version 2.2.0 to 2.2.1

dist/types/index.d.ts

6

package.json
{
"name": "@inquirer/input",
"version": "2.2.0",
"version": "2.2.1",
"description": "Inquirer input text prompt",

@@ -57,3 +57,3 @@ "main": "./dist/cjs/index.js",

"dependencies": {
"@inquirer/core": "^9.0.1",
"@inquirer/core": "^9.0.2",
"@inquirer/type": "^1.4.0"

@@ -90,3 +90,3 @@ },

"sideEffects": false,
"gitHead": "2285f2c043448ff4317635cf6481df7ffda2d3bd"
"gitHead": "95d2d65d3aca2c0fab66c7fd40b5dc413dfc894f"
}

@@ -46,2 +46,3 @@ # `@inquirer/input`

| default | `string` | no | Default value if no answer is provided (clear it by pressing backspace) |
| required | `boolean` | no | Defaults to `false`. If set to true, `undefined` (empty) will not be accepted for this. |
| transformer | `(string, { isFinal: boolean }) => string` | no | Transform/Format the raw value entered by the user. Once the prompt is completed, `isFinal` will be `true`. This function is purely visual, modify the answer in your code if needed. |

@@ -48,0 +49,0 @@ | validate | `string => boolean \| string \| Promise<boolean \| string>` | no | On submit, validate the filtered answered content. When returning a string, it'll be used as the error message displayed to the user. Note: returning a rejected promise, we'll assume a code error happened and crash. |

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc