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.
Install
- Download the latest package
- NPM:
npm install array-to-table
Usage
Node.js / Browserify
var arrayToTable = require('array-to-table')Example
Input
arrayToTable([{
Id: '004',
Icon: '',
Name: 'Charmander',
},{
Id: '005',
Icon: '',
Name: 'Charmeleon',
},{
Id: '006',
Icon: '',
Name: 'Charizard',
},{
Id: '151',
Icon: '',
Name: 'Mew'
}])Output
| Id | Icon | Name |
|---|---|---|
| 004 | ![]() |
Charmander |
| 005 | ![]() |
Charmeleon |
| 006 | ![]() |
Charizard |
| 151 | ![]() |
Mew |
License
Licensed under The MIT License.



