How to use the readline-sync.setDefaultOptions function in readline-sync

To help you get started, we’ve selected a few readline-sync examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github zowe / imperative / packages / utilities / src / CliUtils.ts View on Github external
public static promptForInput(message: string): string {
        const prompt = require("readline-sync");
        prompt.setDefaultOptions({mask: "", hideEchoBack: true});
        return prompt.question(message);
    }