Socket
Book a DemoInstallSign in
Socket

@master-chief/pretty-table

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@master-chief/pretty-table

Format data to a console friendly table.

latest
npmnpm
Version
1.2.3
Version published
Maintainers
1
Created
Source

pretty-table

version language build prettier

Format data to a console friendly table.

Contents

  • Features
  • Install
  • Example
  • Contributing

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.

FAQs

Package last updated on 30 Dec 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts