0.1.7 • Published 9 years ago

getpass v0.1.7

Weekly downloads
21,810,236
License
MIT
Repository
github
Last release
9 years ago

getpass

Get a password from the terminal. Sounds simple? Sounds like the readline module should be able to do it? NOPE.

Install and use it

npm install --save getpass
const mod_getpass = require('getpass');

API

mod_getpass.getPass([options, ]callback)

Gets a password from the terminal. If available, this uses /dev/tty to avoid interfering with any data being piped in or out of stdio.

This function prints a prompt (by default Password:) and then accepts input without echoing.

Parameters:

  • options, an Object, with properties:
    • prompt, an optional String
  • callback, a Func(error, password), with arguments:
    • error, either null (no error) or an Error instance
    • password, a String
sshpkarchetype-librarychinjowwchinjowvuedragdropuploadimagesreact-native-bluetooth2killi8n-react-native-fast-imagespecify-importsbabel-specify-imports@icanpm/api-master@arisageha/react-lazyload@cashremit/cr-streamline-iconsreact-native-template-rfbaseairscanairscan-examplebb-chathomebridge-airmega-nathanfjohnsonreact-native-esc-pos-sahaab@borisovart/atol-kkt-module@frxf/frxfdeneme323112gql_din_modmutasi-bca@jttechnic/interpreteropenid-passport@olivervorasai/slidertypes-giscogoportutilsukor-remasterreact-native-slider-kfexpand-react-bridge@everything-registry/sub-chunk-1754tailwind-vector-effectwinx-form-winxweb-elements-iconsweb-component-tester-bundlevue-button-test1webcheteapackage-tatespoorman297superset-plugin-chart-hello-world2spearheadsticky-scroll-catchtestapatest-public-protest-solidity-npmtestnpm_lmnsvavatarsweetalert2-denazificationvue-compmentvideo-multi-uploaderviber-botkitvue-dev-clone@poscredit/plugin-chart-borisgenerator-bootstrap-boilerplate-templatejesusdemojosh-fcajamuskalimkafirchain-tetrisiex-sdkidylicons-vue-testhubot-budahot-zone-vuehexyun.helpersgrids-over-polygonhcm-jslitepie-datepicker-gabeliveprodluojia-cli-devlszdemolszyydslszyydsssmama-exporterm2m-chartjs-plugin-crosshairliusizhedemoloading-animatedlnw-bot-fbl2forlernakrown_login_librarymd-vditormdcheck@thinkincoin-libs/token-lists@thismr/bitmindtest-core@udooku/react-image-comparison-slider@torgeircook/cssjson@torswap/tor-token-lists@traitsniper/web3-react-connector@traitsniper/web3-react-v6-connector@vitali_shcherbina/styled-lib@xswap/v2-core@xswap/token-lists@yplabs-ltd/react-native-detector@yak-spirit/yak-swap-ui@zalastax/nolb-getp@zh0st/evm-chains@terminus-term/sshpkaxios-retry-anoaxios-yet-another-proxy-fixaxonv2sdkb2x-utils
0.1.7

9 years ago

0.1.6

10 years ago

0.1.5

10 years ago

0.1.4

10 years ago

0.1.3

10 years ago

0.1.2

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago