Security News
PyPI Introduces Digital Attestations to Strengthen Python Package Security
PyPI now supports digital attestations, enhancing security and trust by allowing package maintainers to verify the authenticity of Python packages.
enquirer-prompt-input
Advanced tools
Input prompt plugin for [Enquirer]. This is the only prompt type included in Enquirer by default and does not need to be registered separately.
Input prompt plugin for Enquirer. This is the only prompt type included in Enquirer by default and does not need to be registered separately.
Install with npm:
$ npm install --save enquirer-prompt-input
var Input = require('enquirer-prompt-input');
var input = new Input({
name: 'first',
message: 'What is your name?'
});
input.ask(function(answers) {
console.log(answers);
});
This is the only prompt type included in enquirer by default, so you don't need to register this with enquirer. The following is only an example of how custom prompts are registered.
var Enquirer = require('enquirer');
var enquirer = new Enquirer();
// register the prompt type with enquirer
enquirer.register('input', require('enquirer-prompt-input'));
var Enquirer = require('enquirer');
var enquirer = new Enquirer();
enquirer.register('input', require('enquirer-prompt-input'));
var questions = [
{
type: 'input',
name: 'first',
message: 'First name?',
default: 'Brian'
},
{
type: 'input',
name: 'last',
message: 'Last name?',
default: 'Woodward'
}
];
enquirer.ask(questions)
.then(function(answers) {
console.log(answers)
});
Based on the input
prompt in inquirer.
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.
Install dev dependencies:
$ npm install -d && npm test
Jon Schlinkert
Copyright © 2016, Jon Schlinkert. Released under the MIT license.
This file was generated by verb-generate-readme, v0.1.30, on August 30, 2016.
FAQs
Input prompt plugin for [Enquirer]. This is the only prompt type included in Enquirer by default and does not need to be registered separately.
We found that enquirer-prompt-input demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PyPI now supports digital attestations, enhancing security and trust by allowing package maintainers to verify the authenticity of Python packages.
Security News
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.