-
Notifications
You must be signed in to change notification settings - Fork 182
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Doesnt work in repl #222
Comments
Can you post a proper issue, with repro code, versions, platform infos? thanks |
indeed it seems the behavior is not good from REPL
compared to running a file (which is usually how people do) const prompt = require('prompt');
(async() => {
const v = await prompt.get({ properties: { weather: { type: 'string', enum: ['bad', 'good', 'decent'] } } });
console.log(v);
})();
// outputs:
// prompt: weather: good
// { weather: 'good' } |
I did not research what the difference is, but i verified, the prompt-sync npm package does work in the repl. Look in their package for solutions |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Doesnt work in node repl
The text was updated successfully, but these errors were encountered: