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

mark-to-json

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mark-to-json - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

5

CHANGELOG.md

@@ -1,3 +0,3 @@

<a name="0.0.1"></a>
## 0.0.1 (2018-08-21)
<a name="0.1.0"></a>
# [0.1.0](https://github.com/lbw/mark-to-json/compare/0713828...v0.1.0) (2018-08-21)

@@ -7,2 +7,3 @@

* adjust `md` to `token`, complete prototype ([47e6a5e](https://github.com/lbw/mark-to-json/commit/47e6a5e))
* core features ([0713828](https://github.com/lbw/mark-to-json/commit/0713828))

@@ -9,0 +10,0 @@

1

dist/lib/index.js

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

this.dest = utils_1.stringify(dest);
logger_1.default.info('dest :', dest);
this.content = this.__raw.content;

@@ -19,0 +18,0 @@ this.schema = Object.assign(this.__raw.data, extraHeader, {

@@ -27,3 +27,2 @@ import reader = require('gray-matter')

this.dest = stringify(dest)
logger.info('dest :', dest)
this.content = this.__raw.content

@@ -30,0 +29,0 @@ this.schema = Object.assign(this.__raw.data, extraHeader, {

{
"name": "mark-to-json",
"version": "0.1.0",
"version": "0.1.1",
"description": "parse markdown to json",

@@ -38,2 +38,4 @@ "main": "dist/lib/index.js",

"mark-to-json",
"markdown",
"json",
"parser",

@@ -40,0 +42,0 @@ "yaml",

@@ -1,5 +0,15 @@

mark-to-json
# mark-to-json [![NpmVersion](https://img.shields.io/npm/v/mark-to-json.svg?style=flat-square)](https://www.npmjs.com/package/mark-to-json) [![NodeVersion](https://img.shields.io/node/v/mark-to-json.svg?style=flat-square)](https://www.npmjs.com/package/mark-to-json)
> Parse markdown to JSON file
## Installing
```bash
# npm
npm i mark-to-json --save
# yarn
yarn add mark-to-json
```
## Usage

@@ -18,2 +28,8 @@

})
// You can find your json file at the './writings/hello-world.json' based on the current nodejs working path
```
The sample output file: [here]
[here]:https://github.com/lbwa/mark-to-json/tree/master/samples
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