
Research
/Security News
npm Author Qix Compromised via Phishing Email in Major Supply Chain Attack
npm author Qix’s account was compromised, with malicious versions of popular packages like chalk-template, color-convert, and strip-ansi published.
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.
The npm package markdown-post-parser receives a total of 0 weekly downloads. As such, markdown-post-parser popularity was classified as not popular.
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.
Research
/Security News
npm author Qix’s account was compromised, with malicious versions of popular packages like chalk-template, color-convert, and strip-ansi published.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.