0.1.1 โข Published 1 year ago
console-table-without-index v0.1.1
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.