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 = [
{ Type: "Wish", text: "I would like some gelb bananen bitte", value: 100 },
{ Type: "Hope", text: "I hope batch update is working", value: 300 },
];

//print
printTable(testCases);

Output:

Screenshot