
Security News
Meet Socket at Black Hat and DEF CON 2025 in Las Vegas
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
console-gridlist
Advanced tools
npm install console-gridlist@latest
let title = "title"
// The title of grid
// String only
// Line breaks accepted
let head = ["","","",...]
/* The titles of each column
You can set the alignment of cells
by including one of these arrows in
a column title.
left : ←
right : →
center : none
*/
// The body is a 2D array
// that contains the elements
let body = [
["","","",...],
["","","",...],
["","","",...],
...
]
// Syntaxe
console.log( grid( title, head, body))
All arrays in the body must be the same length as the head array. A title setting will be added in future releases. The size of the grid depends on the size of the elements that are displayed.
const grid = require("console-gridlist")
let example = grid("Classement",
// head from string
"id→,name,←age",
[// body
// from Array
["1","patrick","20"],
// from String
"2,bob,30",
// from Object values
{id:3,name:"louis",age:21}
// from other...
// (Map, Discord.Collection)
]
)
console.log(example)
╔════════════════════╗
║ Classement ║
╠════╦═════════╦═════╣
║ id ║ name ║ age ║
╠════╬═════════╬═════╣
║ 1 ║ patrick ║ 20 ║
║ 2 ║ bob ║ 30 ║
║ 3 ║ louis ║ 21 ║
╚════╩═════════╩═════╝
FAQs
Grid generator for console and markdown code-blocs
The npm package console-gridlist receives a total of 0 weekly downloads. As such, console-gridlist popularity was classified as not popular.
We found that console-gridlist 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
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
Security News
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.
Security News
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.