šŸš€ Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more →
Socket
Sign inDemoInstall
Socket

json-to-markdown-table

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

json-to-markdown-table

Transform JSON object to markdown style table

1.0.0
latest
Source
npm
Version published
Weekly downloads
6.2K
-49.05%
Maintainers
1
Weekly downloads
Ā 
Created
Source

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|


FAQs

Package last updated on 14 Oct 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts