@riasatsk/input
is a simple utility for reading user input from the command line in Node.js applications. It wraps the readline
module to make input prompts more straightforward and easy to use.
To use @riasatsk/input
in your project, you need to install it via npm or yarn. Ensure you have Node.js installed on your machine.
npm install @riasatsk/input
import input from "@riasatsk/input";
const name = await input("What is your name: ");
console.log("Hello " + name + "!");