Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

remark-mdx-frontmatter

Package Overview
Dependencies
Maintainers
0
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

remark-mdx-frontmatter - npm Package Compare versions

Comparing version 4.0.0 to 5.0.0

dist/remark-mdx-frontmatter.d.ts

23

package.json
{
"name": "remark-mdx-frontmatter",
"version": "4.0.0",
"version": "5.0.0",
"description": "A remark plugin for converting frontmatter metadata into MDX exports",

@@ -8,3 +8,4 @@ "author": "Remco Haszing <remcohaszing@gmail.com>",

"type": "module",
"exports": "./index.js",
"exports": "./dist/remark-mdx-frontmatter.js",
"main": "./dist/remark-mdx-frontmatter.js",
"repository": "remcohaszing/remark-mdx-frontmatter",

@@ -27,8 +28,10 @@ "bugs": "https://github.com/remcohaszing/remark-mdx-frontmatter/issues",

"files": [
"index.js",
"index.d.ts"
"dist",
"src",
"!test*"
],
"scripts": {
"prepack": "tsc --noEmit false",
"test": "c8 tsx ./test.ts"
"prepack": "tsc --build",
"pretest": "tsc --build",
"test": "c8 node --test"
},

@@ -46,3 +49,3 @@ "dependencies": {

"@types/node": "*",
"c8": "^8.0.0",
"c8": "^10.0.0",
"eslint": "^8.0.0",

@@ -54,8 +57,8 @@ "eslint-config-remcohaszing": "^10.0.0",

"prettier": "^3.0.0",
"remark-cli": "^11.0.0",
"remark-cli": "^12.0.0",
"remark-frontmatter": "^5.0.0",
"remark-preset-remcohaszing": "^2.0.0",
"tsx": "^3.0.0",
"remark-preset-remcohaszing": "^3.0.0",
"snapshot-fixtures": "^1.0.0",
"typescript": "^5.0.0"
}
}

@@ -52,7 +52,7 @@ # remark-mdx-frontmatter

const { contents } = await compile(await readFile('example.mdx'), {
const { value } = await compile(await readFile('example.mdx'), {
jsx: true,
remarkPlugins: [remarkFrontmatter, remarkMdxFrontmatter]
})
console.log(contents)
console.log(value)
```

@@ -59,0 +59,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc