The built-in Node.js console.table, but without the annoying (index) column. ๐
npm install console-table-without-indexconsole.table Without (index)The built-in Node.js console.table, but without the annoying (index) column. ๐
Without this utility:
``js`
console.table([
{ emoji: "๐", fruit: "apple" },
{ emoji: "๐", fruit: "banana" },
{ emoji: "๐", fruit: "cherry" },
]);
`plaintext`
โโโโโโโโโโโฌโโโโโโโโฌโโโโโโโโโโโ
โ (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?
With this utility:
`shell`
npm i console-table-without-index
`ts
import { table } from "console-table-without-index";
console.log(
table([
{ emoji: "๐", fruit: "apple" },
{ emoji: "๐", fruit: "banana" },
{ emoji: "๐", fruit: "cherry" },
]),
);
`
`plaintext`
โโโโโโโโโฌโโโโโโโโโโโ
โ emoji โ fruit โ
โโโโโโโโโผโโโโโโโโโโโค
โ '๐' โ 'apple' โ
โ '๐' โ 'banana' โ
โ '๐' โ 'cherry' โ
โโโโโโโโโดโโโโโโโโโโโ
Hooray!
No more (index)!
๐
Craigory Coppola ๐ค | Josh Goldberg โจ ๐ป ๐ ๐ ๐ค ๐ ๐ง ๐ ๐ง | fisker Cheung ๐ป |
> ๐ This package was templated with create-typescript-app`.