SkillAgentSearch skills...

Mdtable2json

Small module to convert markdown tables to json

Install / Use

/learn @vzaccaria/Mdtable2json
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

mdtable2json NPM version

Install globally with npm

$ npm i -g mdtable2json

What is it

Takes a markdown string and extracts tables in json form contained in it.

Example

var x =
            `
| a    | b     | c     |
| ---- | ----- | ----- |
| 1    | 2     | 3     |
`

var tb = require('mdtable2json').getTables(x)

/* tb =

[{
            "headers": [
                "a",
                "b",
                "c"
            ],
            "json": [{
                "a": "1",
                "b": "2",
                "c": "3"
            }]
        }]

*/

API

<!-- Start index.js --> <!-- End index.js -->

Author

  • Vittorio Zaccaria

License

Copyright © 2015 Vittorio Zaccaria Released under the BSD license.


This file was generated by verb-cli on September 29, 2015.

View on GitHub
GitHub Stars16
CategoryDevelopment
Updated1y ago
Forks2

Languages

JavaScript

Security Score

60/100

Audited on Jul 11, 2024

No findings