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

frontmd2json

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

frontmd2json - npm Package Compare versions

Comparing version 0.0.4 to 0.0.5

12

index.js

@@ -14,9 +14,11 @@ "use strict";

var articles = paths.map(function(filePath) {
var json = frontMatter.loadFront(filePath, 'markdown')
json.path = path.dirname(filePath)
json.markdown = json.markdown.replace(/^\n*/, '')
return json
var meta = frontMatter.loadFront(filePath, 'markdown')
meta._path = path.dirname(filePath)
meta._markdown = meta.markdown.replace(/^\n*/, '')
return {
meta: meta
}
})
.map(function(json) {
json.html = remarkable.render(json.markdown)
json.html = remarkable.render(json.meta._markdown)
return json

@@ -23,0 +25,0 @@ })

{
"name": "frontmd2json",
"version": "0.0.4",
"version": "0.0.5",
"description": "convert markdown files with frontmatter to json",

@@ -5,0 +5,0 @@ "main": "index.js",

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