Skip to content

Latest commit

 

History

History
32 lines (22 loc) · 517 Bytes

README.md

File metadata and controls

32 lines (22 loc) · 517 Bytes

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 => {
    // ...
});

API