New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

json2md

Package Overview
Dependencies
Maintainers
1
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

json2md - npm Package Compare versions

Comparing version 1.6.2 to 1.6.3

10

lib/converters.js

@@ -131,2 +131,12 @@ "use strict";

return [header, spaces, data].join("\n");
};
converters.link = function (input, json2md) {
if (Array.isArray(input)) {
return json2md(input, "", "link");
}
if (typeof input === "string") {
return converters.link({ source: input, title: "" });
}
return "[" + input.title + "](" + input.source + ")";
};

1

lib/index.js

@@ -27,2 +27,3 @@ "use strict";

* | `table` | Table | An object containing the `headers` (`Array` of `String`s) and `rows` (`Array` of `Array`s or `Object`s). | `{ table: { headers: ["a", "b"], rows: [{ a: "col1", b: "col2" }] } }` or `{ table: { headers: ["a", "b"], rows: [["col1", "col2"]] } }` |
* | `link` | Link | An object containing the `title` and the `url` fields. |
*

@@ -29,0 +30,0 @@ *

5

package.json
{
"name": "json2md",
"version": "1.6.2",
"version": "1.6.3",
"description": "A JSON to Markdown converter.",

@@ -27,3 +27,4 @@ "main": "lib/index.js",

"Dmitry Tsvettsikh <me@reklatsmasters.com>",
"Daniel Bastos <danielbastos@live.com>"
"Daniel Bastos <danielbastos@live.com>",
"Keith Chen <keith.chenzhun@yahoo.com>"
],

@@ -30,0 +31,0 @@ "license": "MIT",

@@ -8,6 +8,4 @@ <!-- Please do not edit this file. Edit the `blah` field in the `package.json` instead. If in doubt, open an issue. -->

[![Support me on Patreon][badge_patreon]][patreon] [![Buy me a book][badge_amazon]][amazon] [![PayPal][badge_paypal_donate]][paypal-donations] [![Ask me anything](https://img.shields.io/badge/ask%20me-anything-1abc9c.svg)](https://github.com/IonicaBizau/ama) [![Version](https://img.shields.io/npm/v/json2md.svg)](https://www.npmjs.com/package/json2md) [![Downloads](https://img.shields.io/npm/dt/json2md.svg)](https://www.npmjs.com/package/json2md) [![Get help on Codementor](https://cdn.codementor.io/badges/get_help_github.svg)](https://www.codementor.io/johnnyb?utm_source=github&utm_medium=button&utm_term=johnnyb&utm_campaign=github)
[![Support me on Patreon][badge_patreon]][patreon] [![Buy me a book][badge_amazon]][amazon] [![PayPal][badge_paypal_donate]][paypal-donations] [![Ask me anything](https://img.shields.io/badge/ask%20me-anything-1abc9c.svg)](https://github.com/IonicaBizau/ama) [![Version](https://img.shields.io/npm/v/json2md.svg)](https://www.npmjs.com/package/json2md) [![Downloads](https://img.shields.io/npm/dt/json2md.svg)](https://www.npmjs.com/package/json2md)
<a href="https://www.buymeacoffee.com/H96WwChMy" target="_blank"><img src="https://www.buymeacoffee.com/assets/img/custom_images/yellow_img.png" alt="Buy Me A Coffee"></a>
> A JSON to Markdown converter.

@@ -141,2 +139,3 @@

| `table` | Table | An object containing the `headers` (`Array` of `String`s) and `rows` (`Array` of `Array`s or `Object`s). | `{ table: { headers: ["a", "b"], rows: [{ a: "col1", b: "col2" }] } }` or `{ table: { headers: ["a", "b"], rows: [["col1", "col2"]] } }` |
| `link` | Link | An object containing the `title` and the `url` fields. |

@@ -209,2 +208,3 @@ You can extend the `json2md.converters` object to support your custom types.

- [`doc-cli`](https://github.com/cnio/doc-cli#readme) (by CNIO)—doc generator for nodejs
- [`gatsby-source-google-docs`](https://github.com/xuopled/gatsby-source-google-docs#readme) (by Cédric Delpoux)—Gatsby plugin to use google-docs as a data source
- [`gitdox`](https://github.com/danielbastos11/gitdox) (by Daniel Bastos)—jsdoc-based github readme generator

@@ -218,2 +218,3 @@ - [`jumia-travel-changelog`](https://github.com/josemsantos/jumia-travel-changelog-generator#readme) (by José Santos)—This tool is meant to automatize the process of creating and maintening a CHANGELOG.md file. Based on github pull requests and milestones it will report a complete list of releases with all events. All future milestones are considered future releases.

- [`pantheon_site_management`](https://github.com/loudbinary/pantheon_site_management#readme)—CLI Utility to aide in management of Pantheon organizations
- [`rap2doc`](https://github.com/ganl/rap2doc#readme) (by ganl)—rap2 接口导出Markdown
- [`reposier`](https://www.reposier.com/) (by Alex Lee)—Tasty CLI on the outside, simple integration with GitHub's API on the inside.

@@ -220,0 +221,0 @@ - [`rober19-config`](https://github.com/Rober19/rober19_config#readme) (by Rober19)—config - att: rober19

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc