0.1.1 โ€ข Published 8 months ago

console-table-without-index v0.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months ago

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.

0.1.1

8 months ago

0.1.0

11 months ago