Installations
npm install mdx-frontmatter-loader
Developer Guide
Typescript
No
Module System
CommonJS
Min. Node Version
>= 6.9.0
Node Version
8.11.3
NPM Version
5.6.0
Score
26
Supply Chain
48.8
Quality
65.6
Maintenance
50
Vulnerability
97.4
License
Releases
Unable to fetch releases
Contributors
Unable to fetch Contributors
Languages
JavaScript (100%)
Love this project? Help keep it running — sponsor us today! 🚀
Developer
some1else
Download Statistics
Total Downloads
139,024
Last Day
11
Last Week
88
Last Month
215
Last Year
3,475
GitHub Statistics
4 Stars
5 Commits
3 Watchers
1 Branches
1 Contributors
Updated on Aug 13, 2023
Bundle Size
171.44 kB
Minified
41.69 kB
Minified + Gzipped
Package Meta Information
Latest Version
0.1.1
Package Id
mdx-frontmatter-loader@0.1.1
Unpacked Size
1.85 kB
Size
0.98 kB
File Count
3
NPM Version
5.6.0
Node Version
8.11.3
Total Downloads
Cumulative downloads
Total Downloads
139,024
Last Day
37.5%
11
Compared to previous day
Last Week
266.7%
88
Compared to previous week
Last Month
211.6%
215
Compared to previous month
Last Year
-86.8%
3,475
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
Dependencies
1
Peer Dependencies
2
mdx-frontmatter-loader
Use to add front-matter to @mdx-js exports.
Dependencies:
remark-frontmatter
front-matter
Config
{
test: /\.md$/,
use: [
'babel-loader',
{
// Adds frontmatter to export
loader: 'mdx-frontmatter-loader',
},
{
loader: '@mdx-js/loader',
options: {
mdPlugins: [
[
// Remove frontMatter from body output
require('remark-frontmatter'),
{ type: 'yaml', marker: '-', fence: '---' },
],
],
},
},
],
},
Usage
Import both Mdx component and frontmatter attributes:
import WhateverMarkdown, { attributes as whateverMetadata } from './whatever.md'
Then use in JSX like so:
<h1>{ whateverMetadata.title }</h1>
<WhateverMarkdown />
MIT (c) some1else

No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 0/5 approved changesets -- score normalized to 0
Reason
no SAST tool detected
Details
- Warn: no pull requests merged into dev branch
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
- Warn: no security policy file detected
- Warn: no security file to analyze
- Warn: no security file to analyze
- Warn: no security file to analyze
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
license file not detected
Details
- Warn: project does not have a license file
Reason
branch protection not enabled on development/release branches
Details
- Warn: branch protection not enabled for branch 'master'
Score
2.6
/10
Last Scanned on 2025-02-03
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More