filmov
tv
How to read input from command prompt in node js

Показать описание
#javascript #node #nodejs
# Install promp-sync
npm install prompt-sync
# Read with following code
const prompt = require("prompt-sync")({ sigint: true });
const age = prompt("How old are you? ");
# Install promp-sync
npm install prompt-sync
# Read with following code
const prompt = require("prompt-sync")({ sigint: true });
const age = prompt("How old are you? ");