@m2d/core
Version:
Core engine to convert extended MDAST to DOCX. Supports plugins for footnotes, images, lists, tables, and more. Designed for seamless Markdown-to-DOCX conversion.
124 lines (123 loc) • 3.17 kB
JSON
{
"name": "@m2d/core",
"author": "Mayank Kumar Chaudhari (https://mayank-chaudhari.vercel.app)",
"private": false,
"version": "0.0.5",
"description": "Core engine to convert extended MDAST to DOCX. Supports plugins for footnotes, images, lists, tables, and more. Designed for seamless Markdown-to-DOCX conversion.",
"license": "MPL-2.0",
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"repository": "github:md2docx/core",
"bugs": "https://github.com/md2docx/core/issues",
"homepage": "https://github.com/md2docx/core/#readme",
"sideEffects": false,
"files": [
"dist/**"
],
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.mjs",
"require": "./dist/index.js"
},
"./section": {
"types": "./dist/section.d.ts",
"import": "./dist/section.mjs",
"require": "./dist/section.js"
},
"./dist/section": {
"types": "./dist/section.d.ts",
"import": "./dist/section.mjs",
"require": "./dist/section.js"
},
"./utils": {
"types": "./dist/utils.d.ts",
"import": "./dist/utils.mjs",
"require": "./dist/utils.js"
},
"./dist/utils": {
"types": "./dist/utils.d.ts",
"import": "./dist/utils.mjs",
"require": "./dist/utils.js"
}
},
"scripts": {
"build": "tsup && tsc -p tsconfig-build.json && gzip -c dist/index.js | wc -c",
"clean": "rm -rf dist",
"dev": "tsup --watch && tsc -p tsconfig-build.json -w",
"typecheck": "tsc --noEmit",
"lint": "eslint src/",
"lint:fix": "eslint src/ --fix",
"test": "vitest run --coverage"
},
"devDependencies": {
"@repo/eslint-config": "workspace:*",
"@repo/typescript-config": "workspace:*",
"@testing-library/react": "^16.3.0",
"@types/mdast": "^4.0.4",
"@types/node": "^22.14.1",
"@types/react": "^19.1.1",
"@types/react-dom": "^19.1.2",
"@vitejs/plugin-react": "^4.3.4",
"@vitest/coverage-v8": "^3.1.1",
"docx": "^9.3.0",
"esbuild-plugin-rdi": "^0.0.0",
"jsdom": "^26.0.0",
"remark-gfm": "^4.0.1",
"remark-parse": "^11.0.0",
"tsup": "^8.4.0",
"typescript": "^5.8.3",
"unified": "^11.0.5",
"vite-tsconfig-paths": "^5.1.4",
"vitest": "^3.1.1"
},
"dependencies": {
"@m2d/mdast": "^0.1.2"
},
"peerDependencies": {
"docx": "^9.3.0"
},
"funding": [
{
"type": "github",
"url": "https://github.com/sponsors/md2docx"
},
{
"type": "github",
"url": "https://github.com/sponsors/tiny-md"
}
],
"keywords": [
"mdast",
"markdown",
"generative-ai",
"docx",
"markdown-to-docx",
"mdast-to-docx",
"remark",
"unified",
"text-processing",
"document-generator",
"typescript",
"open-source",
"export",
"document-generation",
"customizable",
"renderer",
"plugin-system",
"footnotes",
"tables",
"lists",
"images",
"headings",
"rich-text",
"automation",
"seamless-integration",
"cutting-edge",
"frontend",
"modern",
"compatibility",
"mayank1513"
]
}