0.1.1 โข Published 8 months 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-index
import { 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
.