1.0.2 • Published 2 years ago

rl-sync v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

rl-sync

rl-sync is a synchronous prompt with support for Windows and Linux.

Usage:

rl-sync is made to be easy to use and simple. To use rl-sync, simply require the module and call the prompt function like this:

const prompt = require('rl-sync');
console.log('Hello,', prompt('What\'s your name? '));

rl-sync allows you to use masks for the prompt if you'd like to hide input, like this:

const prompt = require('rl-sync');
console.log('Hello,', prompt('What\'s your name? ', '*'));

The second argument passed in is a *, meaning it will display '*' instead of the actual character passed in.