const estimate = await io.input.currency('Quote price')
console.log(estimate) // '5.00'
The label to render above the input.
Default value rendered in input. Default 0.
Display locale for the input. Default 'en-US'.
Currency code for the input. Default 'USD'.
See: https://en.wikipedia.org/wiki/ISO_4217#List_of_ISO_4217_currency_codes
The number of decimals for the input. Affects the input masking and return value (adds trailing zeros). Default 2.
The minimum number of decimals for the input. Default 2.
Numeric value or parsed string value. Default 'number'.
Example return values '$5,001.00' vs. '5001'.
The amount to increment on arrow key events. Default 1.
Minimum value rendered in input. Default undefined.
Maximum value rendered in input. Default undefined.
Disables user input. Default false.
The small help text to render below the input. Default ''.
An asynchronous function that takes unknown input and outputs either true or an error message string to show the user.