Gathering detailed insights and metrics for @mizchi/jest-mdx-loader
Gathering detailed insights and metrics for @mizchi/jest-mdx-loader
Gathering detailed insights and metrics for @mizchi/jest-mdx-loader
Gathering detailed insights and metrics for @mizchi/jest-mdx-loader
npm install @mizchi/jest-mdx-loader
Typescript
Module System
Node Version
NPM Version
34.5
Supply Chain
60.1
Quality
74.4
Maintenance
100
Vulnerability
99.3
License
JavaScript (100%)
Total Downloads
2,336
Last Day
1
Last Week
2
Last Month
12
Last Year
191
2 Stars
6 Commits
4 Forks
1 Branches
1 Contributors
Latest Version
0.1.2
Package Id
@mizchi/jest-mdx-loader@0.1.2
Unpacked Size
35.64 kB
Size
8.19 kB
File Count
6
NPM Version
6.2.0
Node Version
10.8.0
Cumulative downloads
Total Downloads
Last day
0%
1
Compared to previous day
Last week
-60%
2
Compared to previous week
Last month
-47.8%
12
Compared to previous month
Last year
3.8%
191
Compared to previous year
3
Jest transformer that wraps mdx-js/mx webpack loader
yarn add --dev jest-mdx-loader
Install jest-mdx-loader and then add it to your jest.config.js under transform:
1/// jest.config.js 2 3module.exports = { 4 //... 5 transform: { 6 "^.+\\.jsx?$": "babel-jest", 7 ".mdx?$": "jest-mdx-loader" 8 } 9 //... 10};
If you need to perform any additional pre-processing prior to parsing with mdx you can easily extend the loader as follows:
1// src/my-custom-jest-mdx-loader.js 2 3const createTransformer = require("jest-mdx-loader/src/createTransformer"); 4 5preMdxParseCallback = function(src) { 6 var modifiedSrc = src; 7 8 // CUSTOM LOGIC HERE 9 10 return modifiedSrc; 11}; 12 13module.exports = { 14 process: createTransformer(preMdxParseCallback) 15};
1/// jest.config.js 2 3module.exports = { 4 //... 5 transform: { 6 "^.+\\.jsx?$": "babel-jest", 7 ".mdx?$": "<rootDir>/src/my-custom-jest-mdx-loader.js" 8 } 9 //... 10};
MIT © Joseph Black
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 0/6 approved changesets -- score normalized to 0
Reason
project is archived
Details
Reason
no SAST tool detected
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
16 existing vulnerabilities detected
Details
Score
Last Scanned on 2024-12-23
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