console-table-without-index
v0.1.1
Published
The built-in Node.js console.table, but without the annoying (index) column. π
Readme
Without this utility:
console.table([
{ emoji: "π", fruit: "apple" },
{ emoji: "π", fruit: "banana" },
{ emoji: "π", fruit: "cherry" },
]);βββββββββββ¬ββββββββ¬βββββββββββ
β (index) β emoji β fruit β
βββββββββββΌββββββββΌβββββββββββ€
β 0 β 'π' β 'apple' β
β 1 β 'π' β 'banana' β
β 2 β 'π' β 'cherry' β
βββββββββββ΄ββββββββ΄βββββββββββLook at that (index) column!
Wouldn't it be nice to get rid of it if you don't need it?
Usage
With this utility:
npm i console-table-without-indeximport { table } from "console-table-without-index";
console.log(
table([
{ emoji: "π", fruit: "apple" },
{ emoji: "π", fruit: "banana" },
{ emoji: "π", fruit: "cherry" },
]),
);βββββββββ¬βββββββββββ
β emoji β fruit β
βββββββββΌβββββββββββ€
β 'π' β 'apple' β
β 'π' β 'banana' β
β 'π' β 'cherry' β
βββββββββ΄βββββββββββHooray!
No more (index)!
π
Contributors
π This package was templated with
create-typescript-app.
