Gathering detailed insights and metrics for json-to-markdown-table2
Gathering detailed insights and metrics for json-to-markdown-table2
Gathering detailed insights and metrics for json-to-markdown-table2
Gathering detailed insights and metrics for json-to-markdown-table2
npm install json-to-markdown-table2
Typescript
Module System
Node Version
NPM Version
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
6 Commits
1 Watchers
1 Branches
1 Contributors
Updated on Aug 03, 2018
Latest Version
1.0.1
Package Id
json-to-markdown-table2@1.0.1
Unpacked Size
5.07 kB
Size
2.22 kB
File Count
6
NPM Version
4.2.0
Node Version
7.9.0
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
1
npm install json-to-markdown-table2
json-to-markdown-table2
convert a JSON object to markdown table format. this component depend on json-to-table
, just convert the format to markdown syntax.
1const jsonToMarkdown2 = require('json-to-markdown-table2'); 2 3const myRecords = [ 4{ 5 name:'Bob', 6 address:{zip:12345, state:'Euphoria'} 7}, 8{ 9 name:'Jon', 10 address:{street:'1234 Main St.', state:'Arizona'} 11}]; 12const tabled = jsonToMarkdown2(myRecords); 13 14console.log(tabled); 15// |name|address.zip|address.state|address.street| 16// |----|----|----|----| 17// |Bob|12345|Euphoria|| 18// |Jon||Arizona|1234 Main St.| 19 20 21const tabled2 = jsonToMarkdown2(myRecords, {defaultVal:'--'}); 22 23console.log(tabled2); 24// |name|address.zip|address.state|address.street| 25// |----|----|----|----| 26// |Bob|12345|Euphoria|--| 27// |Jon|--|Arizona|1234 Main St.| 28
Some available options to pass in as the second argument are as follows.
Look at the tests to see all of these options in action.
{
defaultVal: put whatever you want here //defaults to an empty string
includeCollectionLength: if there is a subarray within the object, it will create a header and include that length //defaults to false
excludeSubArrays: if there is a subarray within the object, it will remove it completely from the resulting table. //defaults to false
checkKeyBeforePath: this will check for a key that has a '.' in it before assuming the '.' means to look deeper in the object //defaults to false
listSubArrays: if there is a subarray that does not contain objects, it will list the full array instead of breaking it up into individual columns. //defaults to false
}
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
no SAST tool detected
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 0/6 approved changesets -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
license file not detected
Details
Reason
branch protection not enabled on development/release branches
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More