JSPM

array-to-table

1.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 43119
  • Score
    100M100P100Q150357F
  • License MIT

Generate markdown table from array of objects

Package Exports

  • array-to-table

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (array-to-table) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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

Id Icon Name
004 004 Charmander
005 005 Charmeleon
006 006 Charizard
151 151 Mew

License

Licensed under The MIT License.