All Projects → enquirer → Prompt Password

enquirer / Prompt Password

Licence: mit
This repository has been archived, use the built-in password prompt in Enquirer instead.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Prompt Password

prompt-password-strength
Custom mask function for prompt-password that adds a 'strength progress meter' that changes color as the password strength increases. Uses zxcvbn, the popular password strength estimation tool brought to you by dropbox.
Stars: ✭ 18 (+125%)
Mutual labels:  prompt, password, mask
Cli Prompt
Allows you to prompt for user input on the command line, and optionally hide the characters they type
Stars: ✭ 228 (+2750%)
Mutual labels:  prompt, password
Gopass
getpasswd for Go
Stars: ✭ 424 (+5200%)
Mutual labels:  prompt, password
Readline Sync
Synchronous Readline for interactively running to have a conversation with the user via a console(TTY).
Stars: ✭ 601 (+7412.5%)
Mutual labels:  prompt, password
Totem Danmaku
totem-danmaku is a plugin that provides danmaku support for Totem Player. totem弹幕为Gnome下的totem播放器提供弹幕支持
Stars: ✭ 24 (+200%)
Mutual labels:  plugin
Wdl Ol
Enhanced version of Cockos' iPlug - A simple-to-use C++ framework for developing cross platform audio plugins and targeting multiple plugin APIs with the same code. VST / VST3 / Audiounit / RTAS / AAX (Native) formats supported. NOTE: THIS IS OBSOLETE, PLEASE SEE IPLUG2:
Stars: ✭ 906 (+11225%)
Mutual labels:  plugin
Intellij jahia plugin
Jahia's definitions.cnd files syntax highlighting, code completion, and other amazing stuff
Stars: ✭ 19 (+137.5%)
Mutual labels:  plugin
Secretscanner
Find secrets and passwords in container images and file systems
Stars: ✭ 895 (+11087.5%)
Mutual labels:  password
Feflow
🚀 A command line tool aims to improve front-end engineer workflow and standard, powered by TypeScript.
Stars: ✭ 942 (+11675%)
Mutual labels:  plugin
Stencil Tailwind
TailwindCSS plugin for Stencil
Stars: ✭ 26 (+225%)
Mutual labels:  plugin
Nativescript Masked Text Field
#️⃣ A NativeScript Masked Text Field widget
Stars: ✭ 24 (+200%)
Mutual labels:  mask
Kafka Connect Elasticsearch Source
Kafka Connect Elasticsearch Source
Stars: ✭ 22 (+175%)
Mutual labels:  plugin
Inquirer Checkbox Plus Prompt
Checkbox with autocomplete and other additions for Inquirer
Stars: ✭ 25 (+212.5%)
Mutual labels:  prompt
Sublimeallautocomplete
Extend Sublime autocompletion to find matches in all open files of the current window
Stars: ✭ 906 (+11225%)
Mutual labels:  plugin
Nn mask
multichannel linear filters based on mask estimation neural networks for CHiME4
Stars: ✭ 26 (+225%)
Mutual labels:  mask
Dotfiles
Configurations for the tools I use every day
Stars: ✭ 898 (+11125%)
Mutual labels:  prompt
Hxd Plugin
Handy HxD plugin for various conversions like base64
Stars: ✭ 24 (+200%)
Mutual labels:  plugin
Vim Dirvish
Directory viewer for Vim ⚡️
Stars: ✭ 929 (+11512.5%)
Mutual labels:  plugin
Confiscate
Discover duplication glitches, abusive staff giving items, x-ray or simply poor server economy.
Stars: ✭ 23 (+187.5%)
Mutual labels:  plugin
Rebar3 clojerl
rebar3 Clojerl compiler plugin
Stars: ✭ 23 (+187.5%)
Mutual labels:  plugin

prompt-password NPM version NPM monthly downloads NPM total downloads Linux Build Status

Password prompt. Can be used as a standalone prompt, or as a plugin for Enquirer.

prompt-password example

Install

Install with npm:

$ npm install --save prompt-password

Usage

var Prompt = require('..');
var prompt = new Prompt({
  type: 'password',
  message: 'Enter your password please',
  name: 'password'
});

prompt.run()
  .then(function(answers) {
    console.log(answers)
  });

mask function

Use prompt-password-strength, or pass a function to customize how the input is masked:

var Prompt = require('..');
var prompt = new Prompt({
  type: 'password',
  message: 'Enter your password please',
  name: 'password',
  mask: function(input) {
    return '█' + new Array(String(input).length).join('█');
  }
});

prompt.run()
  .then(function(answers) {
    console.log(answers)
  });

Enquirer usage

Use the .register method to add the "password" prompt type to enquirer:

var Enquirer = require('enquirer');
var enquirer = new Enquirer();

enquirer.register('password', require('prompt-password'));

// questions can be an array or object
var questions = {
  type: 'password',
  message: 'Enter your password please',
  name: 'password'
};

enquirer.ask(questions)
  .then(function(answers) {
    console.log(answers)
  });

Attribution

Based on the password prompt in inquirer.

About

Related projects

Contributing

Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.

Running tests

Running and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command:

$ npm install && npm test

Author

Jon Schlinkert

License

Copyright © 2017, Jon Schlinkert. Released under the MIT License.


This file was generated by verb-generate-readme, v0.6.0, on June 05, 2017.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].