Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
markdown-post-parser
Advanced tools
Parser for building blogs in Markdown.
npm install --save-dev markdown-post-parser
# generate
mpp -m index.md -i ./src -o ./json/blog.json -s ./static
# watch
mpp -w -m index.md -i ./src -o ./json/blog.json -s ./static
const MarkdownPostParser = require('markdown-post-parser')
const markdownPostParser = new MarkdownPostParser({
main: 'index.md',
input: './src',
output: './json/blog.json',
static: './static'
})
// generate
markdownPostParser.generate().then(() => {
console.log('Generate completeed')
})
// watch
markdownPostParser.watch()
src
├─ post-01
│ ├─ index.md
│ └─ example.png
├─ post-02
│ ├─index.md
│ └─ example.png
└─ post-02
└─index.md
src/post-01/index.md
---
id: post-01
title: Example Post
description: test post
created_at: "2019-04-01"
updated_at: "2019-04-01"
tags:
- HTML
- CSS
- JavaScript
---
## overview
text text
- list item
- list item
- list item
- list item
{
// All posts
"posts": [
{
"path": "src/post-01",
"main": "src/post-01/index.md",
"id": "post-01",
"title": "Example Post",
"description": "test post",
"created_at": "2019-04-01",
"updated_at": "2019-04-01",
"tags": [
"HTML",
"CSS",
"JavaScript"
],
"body": {
"md": "...", // Markdown source
"html": "...", // HTML source
"text": "..." // Plane text source
},
"resource": [
"src/post-01/example.png"
]
},
...
],
// All tags
"tags": [
"HTML",
"CSS",
"JavaScript",
...
],
// All resources
"resources": [
"src/post-01/example.png",
"src/post-02/example.png"
]
# Build TypeScript
yarn build
# Development mode
yarn dev
# Unit test
yarn test
FAQs
Parser for building blogs in Markdown.
We found that markdown-post-parser demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.