Installations
npm install @mizchi/jest-mdx-loader
Developer Guide
Typescript
No
Module System
CommonJS
Node Version
10.8.0
NPM Version
6.2.0
Score
34.5
Supply Chain
60.1
Quality
74.4
Maintenance
100
Vulnerability
99.3
License
Releases
Unable to fetch releases
Contributors
Unable to fetch Contributors
Languages
JavaScript (100%)
Developer
JosephConradBlack
Download Statistics
Total Downloads
2,336
Last Day
1
Last Week
2
Last Month
12
Last Year
191
GitHub Statistics
2 Stars
6 Commits
4 Forks
1 Branches
1 Contributors
Package Meta Information
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
Total Downloads
Cumulative downloads
Total Downloads
2,336
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
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
Peer Dependencies
3
jest-mdx-loader
Jest transformer that wraps mdx-js/mx webpack loader
Install
yarn add --dev jest-mdx-loader
Usage
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};
Licence
MIT © Joseph Black
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
- Info: project has a license file: LICENSE:0
- Info: FSF or OSI recognized license: MIT License: LICENSE:0
Reason
Found 0/6 approved changesets -- score normalized to 0
Reason
project is archived
Details
- Warn: Repository is archived.
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
branch protection not enabled on development/release branches
Details
- Warn: branch protection not enabled for branch 'master'
Reason
16 existing vulnerabilities detected
Details
- Warn: Project is vulnerable to: GHSA-67hx-6x53-jw92
- Warn: Project is vulnerable to: GHSA-9c47-m6qq-7p4h
- Warn: Project is vulnerable to: GHSA-4xc9-xhrj-v574
- Warn: Project is vulnerable to: GHSA-x5rq-j2xg-h7qm
- Warn: Project is vulnerable to: GHSA-jf85-cpcp-j695
- Warn: Project is vulnerable to: GHSA-p6mc-m468-83gw
- Warn: Project is vulnerable to: GHSA-29mw-wpgm-hmr9
- Warn: Project is vulnerable to: GHSA-35jh-r3h4-6jhm
- Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3
- Warn: Project is vulnerable to: GHSA-vh95-rmgr-6w4m / GHSA-xvch-5gv4-984h
- Warn: Project is vulnerable to: GHSA-r683-j2x4-v87g
- Warn: Project is vulnerable to: GHSA-w5p7-h5w8-2hfq
- Warn: Project is vulnerable to: GHSA-662x-fhqg-9p8v
- Warn: Project is vulnerable to: GHSA-394c-5j6w-4xmx
- Warn: Project is vulnerable to: GHSA-78cj-fxph-m83p
- Warn: Project is vulnerable to: GHSA-fhg7-m89q-25r3
Score
1.7
/10
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