Skip to content
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

v4 proposal #15

Closed
davidmarkclements opened this issue Feb 28, 2016 · 2 comments
Closed

v4 proposal #15

davidmarkclements opened this issue Feb 28, 2016 · 2 comments

Comments

@davidmarkclements
Copy link
Collaborator

@0x00A - thoughs?

  • move history into its own module
  • simplify api
var prompt = require('prompt-sync')({
  history: require('prompt-sync-history')(historyFilename, maxHistory),
  autocomplete: myAutocompleteFn,
  sigint: false
});
var ask = 'icecream?';
var value = 'yes';

var answer = prompt(ask, value);

var pw1 = prompt('pw?', {
  value: 'password1',
  echo: '*'
});

var pw2 = prompt('pw2?', {echo: ''}); 

var pw3 = prompt.hide('pw3'); //shorthand for pw2
@heapwolf
Copy link
Owner

👍 yeah! that looks great!

@davidmarkclements
Copy link
Collaborator Author

done and done :bowtie:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants