json-to-markdown-table

1.0.0 • Public • Published

json-to-markdown-table

Transform JSON object to markdown style table

Example

var app = require('json-to-markdown-table');

var columns = [
    'a',
    'b',
    'c',
];


var object = [
    {
        a: 'asdfa',
        b: '239487',
        c: '234',
    },
    {
        a: 'sdf',
        b: 'gsdf',
        c: 'sfd',
    }
];

var tableMdString = app(object, columns);

//   |a|b|c|
//   |----|----|----|
//   |asdfa|239487|234|
//   |sdf|gsdf|sfd|


Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.0
    9,418
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.0
    9,418

Package Sidebar

Install

npm i json-to-markdown-table

Weekly Downloads

3,929

Version

1.0.0

License

ISC

Last publish

Collaborators

  • taku