1.0.1 • Published 9 years ago

array-to-table v1.0.1

Weekly downloads
141
License
MIT
Repository
github
Last release
9 years ago

Array to Table

Convert an array of objects to a simple markdown table.

version License Downloads Dependencies

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

IdIconName
004004Charmander
005005Charmeleon
006006Charizard
151151Mew

License

Licensed under The MIT License.