Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
listr-input
Advanced tools
Readme
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 80,330 weekly downloads. As such, listr-input popularity was classified as 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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.