array-to-table

Generate markdown table from array of objects

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
array-to-table
1101.0.17 years ago7 years agoMinified + gzip package size for array-to-table in KB

Readme

Array to Table
Convert an array of objects to a simple markdown table.
!versionnpm-versionnpm-url !Licensenpm-licenselicense-url !Downloadsnpm-downloadsnpm-url !Dependenciesdavid-imagedavid-url

Install

Usage

Node.js / Browserify
var arrayToTable = require('array-to-table')

Example

Input
arrayToTable([{
  Id: '004',
  Icon: '![004](http://www.psypokes.com/dex/picdex/minis/004.png)',
  Name: 'Charmander',
},{
  Id: '005',
  Icon: '![005](http://www.psypokes.com/dex/picdex/minis/005.png)',
  Name: 'Charmeleon',
},{
  Id: '006',
  Icon: '![006](http://www.psypokes.com/dex/picdex/minis/006.png)',
  Name: 'Charizard',
},{
  Id: '151',
  Icon: '![151](http://www.psypokes.com/dex/picdex/minis/151.png)',
  Name: 'Mew'
}])

Output
Id | Icon | Name --- | --- | --- 004 | 004 | Charmander 005 | 005 | Charmeleon 006 | 006 | Charizard 151 | 151 | Mew

License

Licensed under The MIT License.