Skip to main content

Install and Quick start

Installation

npm install --save console-table-printer

Basic Example

const { printTable } = require("console-table-printer");

//Create a table
const testCases = [
{ index: 3, text: "I would like some gelb bananen bitte", value: 100 },
{ index: 4, text: "I hope batch update is working", value: 300 },
];

//print
printTable(testCases);

Output:

Screenshot