
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
markdown-with-metadata-loader
Advanced tools
Webpack loader for markdown that will parse out yaml metadata in the standard header
returns data in an object with metadata and contents
const theMarkdown = require('somefile.md');
console.log(theMarkdown.metadata); // js object of parsed yaml metadata from the markdown file
console.log(theMarkdown.contents); // The actual, unprocessed markdown contents of the file
In the case of no yaml metadata, the metadata property will contain an empty object. Metadata should be delimited in the standard jekyll/markdown fashion, with a preceding and trailing lines with 3 hyphens, like so
---
author: steve stevers
description: stuff
---
# I'm markdown
yes I are
To use, install
npm install --save-dev markdown-with-metadata-loader
then add to the module.loaders section your webpack.config.js
{
test: /\.md$/,
loader: 'markdown-with-metadata-loader'
},
FAQs
Webpack loader for markdown that will parse out yaml metadata in the standard header
The npm package markdown-with-metadata-loader receives a total of 0 weekly downloads. As such, markdown-with-metadata-loader popularity was classified as not popular.
We found that markdown-with-metadata-loader 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
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.