UNPKG

nodejs-prompt-cli

Version:

A simple package that prints a question to the console and waits for the user's response.

15 lines 479 B
/** * Ask a question to the user and return the answer * @param question The question to ask * @returns The answer to the question * @example * const answer = await askQuestion("What is your name?"); * console.log(`Hello, ${answer}!`); * // Output: What is your name? * // (user types "John") * // Hello, John!AWS */ declare const askQuestion: (question: string) => Promise<string>; export { askQuestion }; export default askQuestion; //# sourceMappingURL=main.d.ts.map