getpass

WebJar for getpass

Лицензия

Лицензия

MIT
Группа

Группа

org.webjars.npm
Идентификатор

Идентификатор

getpass
Последняя версия

Последняя версия

0.1.7
Дата

Дата

Тип

Тип

jar
Описание

Описание

getpass
WebJar for getpass
Ссылка на сайт

Ссылка на сайт

http://webjars.org
Система контроля версий

Система контроля версий

https://github.com/arekinath/node-getpass

Скачать getpass

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/org.webjars.npm/getpass/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>getpass</artifactId>
    <version>0.1.7</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/getpass/
implementation 'org.webjars.npm:getpass:0.1.7'
// https://jarcasting.com/artifacts/org.webjars.npm/getpass/
implementation ("org.webjars.npm:getpass:0.1.7")
'org.webjars.npm:getpass:jar:0.1.7'
<dependency org="org.webjars.npm" name="getpass" rev="0.1.7">
  <artifact name="getpass" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='getpass', version='0.1.7')
)
libraryDependencies += "org.webjars.npm" % "getpass" % "0.1.7"
[org.webjars.npm/getpass "0.1.7"]

Зависимости

compile (1)

Идентификатор библиотеки Тип Версия
org.webjars.npm : assert-plus jar [1.0.0,2)

Модули Проекта

Данный проект не имеет модулей.

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

Версии библиотеки

Версия
0.1.7