Skip to content
This repository has been archived by the owner on Feb 5, 2022. It is now read-only.

replace the homegrown prompt method with the prompt npm package #111

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ansballard
Copy link
Contributor

noticed that when I put the wrong path for my id_rsa a password prompt came up, but the text wasn't hidden as I typed as per most password prompts. So I replaced the prompt function in bin/scp2 with the prompt package and added the hidden option so your password won't be visible on screen as you type it.

Made sure to run process.exit(0) if errors are thrown from grabbing the password, e.g. hitting Ctrl+C, since that's what the original function seemed to do.

…se it to hide passwords entered either on connection error or when specified identity files are not found
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant