@master-chief/pretty-table
TypeScript icon, indicating that this package has built-in type declarations

1.2.3 • Public • Published

pretty-table

version language build prettier

Format data to a console friendly table.

Contents

Features

  • [x] Extremely fast.
  • [x] Prints your data to pretty tables.

Install

From NPM:

$ npm i @master-chief/pretty-table

Example

import pretty from '@master-chief/pretty-table'

let data = [
  { name: 'cosmo', animal: 'cat', age: 12 },
  { name: 'mabel', animal: 'dog', age: 18 },
]

console.log(pretty(data))

The above code will output a formatted (and pretty 😍) table.

name  animal age
cosmo cat    12
mabel dog    18

Contributing

Feel free to contribute and PR to your 💖's content.

Readme

Keywords

none

Package Sidebar

Install

npm i @master-chief/pretty-table

Weekly Downloads

79

Version

1.2.3

License

ISC

Unpacked Size

16.1 kB

Total Files

11

Last publish

Collaborators

  • master-chief