/pretty-table

Format data to a console-friendly table.

Primary LanguageTypeScriptISC LicenseISC

pretty-table

version language build prettier

Format data to a console friendly table.

Contents

Features

  • Extremely fast.
  • 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.