This repo has a vulnerability that isn't being addressed. This repo seems abandoned. I wanted to offer an alternative that is working well for me with the readline sync package (https://github.com/anseki/readline-sync#utility_methods-keyinyn):
Before:
const prompt = require('prompt-sync')();
prompt('> ')
After using readline-sync:
const readlineSync = require('readline-sync');
const answer = readlineSync.prompt();
This repo has a vulnerability that isn't being addressed. This repo seems abandoned. I wanted to offer an alternative that is working well for me with the readline sync package (https://github.com/anseki/readline-sync#utility_methods-keyinyn):
Before:
After using readline-sync: