Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
listr-input
Advanced tools
Input module for Listr
$ npm install --save listr-input
const Listr = require('listr');
const input = require('listr-input');
const got = require('got');
const list = new Listr([
{
title: 'Retrieving data',
task: () => input('Credentials', {
secret: true,
validate: value => value.length > 0,
done: credentials => got('https://myapi.com', {
headers: {
'Authorization': `Bearer ${credentials}`
}
})
})
}
]);
list.run();
Returns an Observable which asks for user input.
Type: string
Question to ask.
Type: string
Default value to use if nothing is entered.
Type: function
Function which accepts the provided value. Should return true
if the value is valid, false
otherwise.
Type: boolean
Default: false
Mark the input as secret.
Type: function
Function that will be invoked when the user has answered the question.
Type: function
Function which accepts the provided value. If returns true
then the value will be submitted automatically.
MIT © Sam Verschueren
FAQs
Input module for Listr
The npm package listr-input receives a total of 0 weekly downloads. As such, listr-input popularity was classified as not popular.
We found that listr-input demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.