Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

json2md

Package Overview
Dependencies
Maintainers
1
Versions
36
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.13.0 to 2.0.0

16

lib/index.js

@@ -67,9 +67,13 @@ "use strict";

} else {
var type = Object.keys(data)[0],
func = converters[_type || type];
var mdText = "";
Object.keys(data).forEach(function (type, index, array) {
var func = converters[_type || type];
if (typeof func === "function") {
return indento(func(_type ? data : data[type], json2md), 1, prefix) + "\n";
}
throw new Error("There is no such converter: " + type);
if (typeof func === "function") {
mdText += indento(func(_type ? data : data[type], json2md), 1, prefix) + "\n";
} else {
throw new Error("There is no such converter: " + type);
}
});
return mdText;
}

@@ -76,0 +80,0 @@ }

{
"name": "json2md",
"version": "1.13.0",
"version": "2.0.0",
"description": "A JSON to Markdown converter.",

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

"Keith Chen <keith.chenzhun@yahoo.com>",
"Cédric Delpoux <cedric.delpoux@gmail.com>"
"Cédric Delpoux <cedric.delpoux@gmail.com>",
"Jan-Philipp Steghöfer <gh@splashstudio.com>"
],

@@ -32,0 +33,0 @@ "license": "MIT",

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

- `@lm_fe/scripts`
- `@myadbox/nebula-template-utils`
- `@aligov/module-doc`

@@ -316,2 +317,3 @@ - `@bonitasoft/dependency-list-to-markdown`

- `tcdown`
- `sfhdown`
- `@bwagener/gridsome-source-google-docs`

@@ -328,11 +330,11 @@ - `@dididc/dc-extension`

- `lggn`
- `@e2y/bdd-dictionary-generator`
- `parse-google-docs-json`
- `@e2y/bdd-dictionary-generator`
- `doc-cli`
- `react-docgen-markdown`
- `lbdoc-p`
- `doc-cli`
- `doc-vue3`
- `chdown-workers`
- `@oasis-engine/oasis-run`
- `dargstack_rgen`
- `chdown-workers`
- `@feizheng/react-markdown-props`

@@ -342,15 +344,16 @@ - `@klarna/postgres-to-docs`

- `gatsby-source-google-docs`
- `rober19-config`
- `mokker`
- `rober19-config`
- `msdown`
- `eddown`
- `laradown`
- `msdown`
- `@s-ui/changelog`
- `@eventcatalogtest/plugin-doc-generator-asyncapi`
- `@hitorisensei/monorepo-readme-generator`
- `joi-md-doc`
- `lab-changelog`
- `collman`
- `doc-vue`
- `describe-dependencies`
- `node-red-contrib-json2md`
- `describe-dependencies`
- `doc-vue`
- `collman`
- `@hitorisensei/monorepo-readme-generator`
- `@eventcatalogtest/plugin-doc-generator-asyncapi`
- `@s-ui/changelog`
- `p2doc`

@@ -362,19 +365,18 @@ - `uxcore-tools`

- `@hitorisensei/markdown-readme-generator`
- `component-docs-2md`
- `codexer`
- `dokuinjs`
- `component-docs-2md`
- `gatsby-source-google-docs-team`
- `pantheon_site_management`
- `postgres-markdown`
- `pantheon_site_management`
- `reposier`
- `solidity-benchmark`
- `type-graphql-to-md`
- `machine-ip`
- `terraform2md`
- `machine-ip`
- `utterance-to-markdown`
- `@eventcatalog/plugin-doc-generator-asyncapi`
- `vue-md-gen`
- `@jswork/react-markdown-props`
- `@myadbox/nebula-template-utils`
- `@mjefi/instags`I am using this library to generate documentation for my projects, being integrated with [blah](https://github.com/IonicaBizau/node-blah).
- `@mjefi/instags`
- `@jswork/react-markdown-props`I am using this library to generate documentation for my projects, being integrated with [blah](https://github.com/IonicaBizau/node-blah).

@@ -381,0 +383,0 @@

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