
Product
Announcing Precomputed Reachability Analysis in Socket
Socket’s precomputed reachability slashes false positives by flagging up to 80% of vulnerabilities as irrelevant, with no setup and instant results.
inquirer-table-prompt
Advanced tools
A table-like prompt for Inquirer.js
npm install --save inquirer-table-prompt
After registering the prompt, set any question to have type: "table"
to make use of this prompt.
The result will be an array, containing the value for each row.
inquirer.registerPrompt("table", require("./index"));
inquirer
.prompt([
{
type: "table",
name: "workoutPlan",
message: "Choose your workout plan for next week",
columns: [
{
name: "Arms",
value: "arms"
},
{
name: "Legs",
value: "legs"
},
{
name: "Cardio",
value: "cardio"
},
{
name: "None",
value: undefined
}
],
rows: [
{
name: "Monday",
value: 0
},
{
name: "Tuesday",
value: 1
},
{
name: "Wednesday",
value: 2
},
{
name: "Thursday",
value: 3
},
{
name: "Friday",
value: 4
},
{
name: "Saturday",
value: 5
},
{
name: "Sunday",
value: 6
}
]
}
])
.then(answers => {
/*
{ workoutPlan:
[ 'arms', 'legs', 'cardio', undefined, 'legs', 'arms', undefined ] }
*/
console.log(answers);
});
columns
: Array of options to display as columns. Follows the same format as Inquirer's choices
rows
: Array of options to display as rows. Follows the same format as Inquirer's choices
pageSize
: Number of rows to display per pageFAQs
A table-like prompt for Inquirer
We found that inquirer-table-prompt 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.
Product
Socket’s precomputed reachability slashes false positives by flagging up to 80% of vulnerabilities as irrelevant, with no setup and instant results.
Product
Socket is launching experimental protection for Chrome extensions, scanning for malware and risky permissions to prevent silent supply chain attacks.
Product
Add secure dependency scanning to Claude Desktop with Socket MCP, a one-click extension that keeps your coding conversations safe from malicious packages.