cread
Prompt in and read from console.
If links in this document not avaiable, please access README on GitHub directly.
Description
ToC
Links
Get Started
const cread = require('cread');
cread.line({
prompt: 'How old are you?',
pattern: /^\d+$/,
}).then(answer => {
// ...
});