A collection of common interactive command line user interfaces.
MIT License
Bot releases are hidden (Show)
Major rewrite of the core to rely on node's async hooks for better isolation of each prompts. Relying on this means each prompt context is fully isolated (previously it would rely on the module level context.)
We expect this update to be transparent to most. Though some custom event handlers within useEffect
could stop working. If you find any issues there, first please let us know - there might be thing to improve internally to make it transparent. The manual fix will likely be to explicitly define events callback as an AsyncResource.
Let us know how this works for you!
getFullOutput()
utility that'll return a raw string of everything that was written to the output stream@inquirer/[email protected]
useState
), it'll only re-renders if the value changed.If you're setting multiple state in a callback from an async function (like setTimeout
or a network call), those will not be merged in a single re-renders. For those case, you're better using a state object holding all values to reduce the amount of re-renders. Open to discuss this in #1251
Major refactor of the core to allow multiple features:
input(...).cancel()
)