{"_id":"mdx2vast","_rev":"6-f1e5aeddf4660f74760af38bbd0b4d9f","name":"mdx2vast","dist-tags":{"latest":"0.5.0"},"versions":{"0.1.0":{"name":"mdx2vast","version":"0.1.0","keywords":["mdx","html","jsx","vale"],"author":{"name":"jdkato"},"license":"MIT","_id":"mdx2vast@0.1.0","maintainers":[{"name":"jdkato","email":"jdkato24@gmail.com"}],"homepage":"https://github.com/jdkato/mdx2vast#readme","bugs":{"url":"https://github.com/jdkato/mdx2vast/issues"},"bin":{"mdx2vast":"bin/cli.js"},"dist":{"shasum":"b4ca1dc37c448da1998655feb4b6066c9328a9c4","tarball":"https://registry.npmjs.org/mdx2vast/-/mdx2vast-0.1.0.tgz","fileCount":5,"integrity":"sha512-nR7Y02UHCIVk1yLArfGlnh9pc7rKpGB3KR3WrnQma6qd3NQUepmJ0vAnjnsgZzqjv9ir9PPvaIOMBx84A/dMlQ==","signatures":[{"sig":"MEUCIQCOWeTq7246htUMg8Aqcw25kDzC4n8w9ERdsgQ1/X1NJAIgc/C1oFIX3q01CJNRWVWjazxcdIrgQ0Y5GglQXgZGGKA=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":5723},"type":"module","engines":{"node":">=18"},"gitHead":"fac6ec55ea4a03f49f7c6be72a1b48546b6255f3","scripts":{"test":"ava"},"_npmUser":{"name":"jdkato","email":"jdkato24@gmail.com"},"repository":{"url":"git+https://github.com/jdkato/mdx2vast.git","type":"git"},"_npmVersion":"10.9.2","description":"CLI to convert MDX to HTML while preserving JSX and expressions.","directories":{},"_nodeVersion":"23.7.0","dependencies":{"fs":"^0.0.1-security","path":"^0.12.7","commander":"^11.0.0","get-stdin":"^9.0.0","hastscript":"^9.0.1","@mdx-js/mdx":"^2.3.0","mdast-util-mdx":"^3.0.0","hast-util-to-html":"^9.0.5","mdast-util-to-hast":"^13.2.0","mdast-util-from-markdown":"^2.0.2","micromark-extension-mdxjs":"^3.0.0"},"_hasShrinkwrap":false,"devDependencies":{"ava":"^6.1.3","execa":"^9.3.0"},"_npmOperationalInternal":{"tmp":"tmp/mdx2vast_0.1.0_1741484643988_0.3354256216102134","host":"s3://npm-registry-packages-npm-production"}},"0.2.0":{"name":"mdx2vast","version":"0.2.0","keywords":["mdx","html","jsx","vale"],"author":{"name":"jdkato"},"license":"MIT","_id":"mdx2vast@0.2.0","maintainers":[{"name":"jdkato","email":"jdkato24@gmail.com"}],"homepage":"https://vale.sh/docs/formats/mdx","bugs":{"url":"https://github.com/jdkato/mdx2vast/issues"},"bin":{"mdx2vast":"bin/cli.js"},"dist":{"shasum":"813136efe62258e49183cabbdb5c27230badf0e5","tarball":"https://registry.npmjs.org/mdx2vast/-/mdx2vast-0.2.0.tgz","fileCount":5,"integrity":"sha512-3QBtoFLEezIiJAqiXJBsHr9tzHqqD8GjT5I7LqUxNPAbZyQT1xCnKxwCw6qD7yunUrRr7KsCStagAecw0/jwiQ==","signatures":[{"sig":"MEYCIQD4ZE5T4CBn+eOxD195wCroog9sCltyzvE8kV0O0WtlrwIhAMu6x7geBVPFVQeKSnIfaZd3VQ9arxaN1TTU37y1d0++","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":6058},"type":"module","engines":{"node":">=18"},"gitHead":"30cae1fa6347f8c06b50020db24c8295af72b733","scripts":{"test":"ava"},"_npmUser":{"name":"jdkato","email":"jdkato24@gmail.com"},"repository":{"url":"git+https://github.com/jdkato/mdx2vast.git","type":"git"},"_npmVersion":"10.9.2","description":"CLI to convert MDX to HTML while preserving JSX and expressions.","directories":{},"_nodeVersion":"23.7.0","dependencies":{"fs":"^0.0.1-security","path":"^0.12.7","commander":"^11.0.0","get-stdin":"^9.0.0","hastscript":"^9.0.1","@mdx-js/mdx":"^2.3.0","mdast-util-mdx":"^3.0.0","hast-util-to-html":"^9.0.5","mdast-util-to-hast":"^13.2.0","mdast-util-from-markdown":"^2.0.2","micromark-extension-mdxjs":"^3.0.0"},"_hasShrinkwrap":false,"devDependencies":{"ava":"^6.1.3","execa":"^9.3.0"},"_npmOperationalInternal":{"tmp":"tmp/mdx2vast_0.2.0_1741486753366_0.5709886686349364","host":"s3://npm-registry-packages-npm-production"}},"0.2.1":{"name":"mdx2vast","version":"0.2.1","keywords":["mdx","html","jsx","vale"],"author":{"name":"jdkato"},"license":"MIT","_id":"mdx2vast@0.2.1","maintainers":[{"name":"jdkato","email":"jdkato24@gmail.com"}],"homepage":"https://vale.sh/docs/formats/mdx","bugs":{"url":"https://github.com/jdkato/mdx2vast/issues"},"bin":{"mdx2vast":"bin/cli.js"},"dist":{"shasum":"dfd4ae92b821e96db795aefec73916e9a4afef07","tarball":"https://registry.npmjs.org/mdx2vast/-/mdx2vast-0.2.1.tgz","fileCount":5,"integrity":"sha512-c25r4Cqw4TSb9nfuRu7kUSDQzH/rtcaDMVNZ27OO1iq/733TAvWuys3igjvCkB7eXfHabrak/cMYH8iQ1qfWig==","signatures":[{"sig":"MEQCIFem8uImDWdrgRVZtV3GfCdtA7PvcfFG4wbkQIflKUk0AiA3PEAKv5dMEy0E+evH28n8sXh8UHtjhGpy1OkOlkwm4g==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":6069},"type":"module","engines":{"node":">=18"},"gitHead":"22024b801bdb4431470884eb11990d7166099a63","scripts":{"test":"ava"},"_npmUser":{"name":"jdkato","email":"jdkato24@gmail.com"},"repository":{"url":"git+https://github.com/jdkato/mdx2vast.git","type":"git"},"_npmVersion":"10.9.2","description":"CLI to convert MDX to HTML while preserving JSX and expressions.","directories":{},"_nodeVersion":"23.7.0","dependencies":{"fs":"^0.0.1-security","path":"^0.12.7","commander":"^11.0.0","get-stdin":"^9.0.0","hastscript":"^9.0.1","@mdx-js/mdx":"^2.3.0","mdast-util-mdx":"^3.0.0","hast-util-to-html":"^9.0.5","mdast-util-to-hast":"^13.2.0","mdast-util-from-markdown":"^2.0.2","micromark-extension-mdxjs":"^3.0.0"},"_hasShrinkwrap":false,"devDependencies":{"ava":"^6.1.3","execa":"^9.3.0"},"_npmOperationalInternal":{"tmp":"tmp/mdx2vast_0.2.1_1741487586783_0.42809770144603054","host":"s3://npm-registry-packages-npm-production"}},"0.3.0":{"name":"mdx2vast","version":"0.3.0","keywords":["mdx","html","jsx","vale"],"author":{"name":"jdkato"},"license":"MIT","_id":"mdx2vast@0.3.0","maintainers":[{"name":"jdkato","email":"jdkato24@gmail.com"}],"homepage":"https://vale.sh/docs/formats/mdx","bugs":{"url":"https://github.com/jdkato/mdx2vast/issues"},"bin":{"mdx2vast":"bin/cli.js"},"dist":{"shasum":"8f8bca691106e71dc3fe35d085859d54fb09582a","tarball":"https://registry.npmjs.org/mdx2vast/-/mdx2vast-0.3.0.tgz","fileCount":5,"integrity":"sha512-xRfRHp6h7bho6esXxKzPA5r3mSmjrKFGyaEBeYwqtK/eSdEYAeAqsG7BJJaxLb/EoIbvgM9VUIdPN4vOyTtf5g==","signatures":[{"sig":"MEQCIAQfgB4zcsUQvcmsqnAUxp1/qKY26sFUEEaZ6wHFaXDVAiBPXmQmQ1BjPn6fcI4d3vtfz8m1pmIO7e5MVVv7wno5Yg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":6343},"type":"module","engines":{"node":">=18"},"gitHead":"16d5684738a082fa6aa1834bee0bb79c8c9fd466","scripts":{"test":"ava"},"_npmUser":{"name":"jdkato","email":"jdkato24@gmail.com"},"repository":{"url":"git+https://github.com/jdkato/mdx2vast.git","type":"git"},"_npmVersion":"10.9.2","description":"CLI to convert MDX to HTML while preserving JSX and expressions.","directories":{},"_nodeVersion":"23.7.0","dependencies":{"fs":"^0.0.1-security","path":"^0.12.7","commander":"^11.0.0","get-stdin":"^9.0.0","hastscript":"^9.0.1","@mdx-js/mdx":"^2.3.0","mdast-util-mdx":"^3.0.0","mdast-util-math":"^3.0.0","hast-util-to-html":"^9.0.5","mdast-util-to-hast":"^13.2.0","mdast-util-from-markdown":"^2.0.2","micromark-extension-math":"^3.1.0","micromark-extension-mdxjs":"^3.0.0"},"_hasShrinkwrap":false,"devDependencies":{"ava":"^6.1.3","execa":"^9.3.0"},"_npmOperationalInternal":{"tmp":"tmp/mdx2vast_0.3.0_1741738225913_0.91247281380164","host":"s3://npm-registry-packages-npm-production"}},"0.3.1":{"name":"mdx2vast","version":"0.3.1","keywords":["mdx","html","jsx","vale"],"author":{"name":"jdkato"},"license":"MIT","_id":"mdx2vast@0.3.1","maintainers":[{"name":"jdkato","email":"jdkato24@gmail.com"}],"homepage":"https://vale.sh/docs/formats/mdx","bugs":{"url":"https://github.com/jdkato/mdx2vast/issues"},"bin":{"mdx2vast":"bin/cli.js"},"dist":{"shasum":"5e50c9c559e5605ccfc6134a53f4a5ec1c6c7767","tarball":"https://registry.npmjs.org/mdx2vast/-/mdx2vast-0.3.1.tgz","fileCount":5,"integrity":"sha512-dN0nvqm98b7e2Dol7aQznAbyKq4duKaLxVczJQjZt6BLYRViweNAbLYuvg8mMz0yiCsWXa819MtQFrIOlqEoXg==","signatures":[{"sig":"MEUCIQC5ubyoXalNEWp8bnYrNFY0uDbNsZBA62qshvn0zdSRKAIgAUm1xsJc1dEO9eBA5+CyR88n3JgHGYCBtbk/kRsWmAo=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":6310},"type":"module","engines":{"node":">=18"},"gitHead":"8b295936003a964e32f91b249d6daeed96a5f634","scripts":{"test":"ava"},"_npmUser":{"name":"jdkato","email":"jdkato24@gmail.com"},"repository":{"url":"git+https://github.com/jdkato/mdx2vast.git","type":"git"},"_npmVersion":"11.4.2","description":"CLI to convert MDX to HTML while preserving JSX and expressions.","directories":{},"_nodeVersion":"24.4.1","dependencies":{"path":"^0.12.7","commander":"^11.0.0","get-stdin":"^9.0.0","hastscript":"^9.0.1","@mdx-js/mdx":"^2.3.0","mdast-util-mdx":"^3.0.0","mdast-util-math":"^3.0.0","hast-util-to-html":"^9.0.5","mdast-util-to-hast":"^13.2.0","mdast-util-from-markdown":"^2.0.2","micromark-extension-math":"^3.1.0","micromark-extension-mdxjs":"^3.0.0"},"_hasShrinkwrap":false,"devDependencies":{"ava":"^6.1.3","execa":"^9.3.0"},"_npmOperationalInternal":{"tmp":"tmp/mdx2vast_0.3.1_1768988008478_0.2691348616947551","host":"s3://npm-registry-packages-npm-production"}},"0.5.0":{"name":"mdx2vast","version":"0.5.0","description":"CLI to convert MDX to HTML while preserving JSX and expressions.","bin":{"mdx2vast":"bin/cli.js"},"repository":{"type":"git","url":"git+https://github.com/jdkato/mdx2vast.git"},"homepage":"https://vale.sh/docs/formats/mdx","author":{"name":"jdkato"},"license":"MIT","engines":{"node":">=18"},"keywords":["mdx","html","jsx","vale"],"type":"module","dependencies":{"@mdx-js/mdx":"^2.3.0","commander":"^11.0.0","get-stdin":"^9.0.0","hast-util-to-html":"^9.0.5","hastscript":"^9.0.1","mdast-util-from-markdown":"^2.0.2","mdast-util-gfm":"^3.1.0","mdast-util-math":"^3.0.0","mdast-util-mdx":"^3.0.0","mdast-util-to-hast":"^13.2.0","micromark-extension-gfm":"^3.0.0","micromark-extension-math":"^3.1.0","micromark-extension-mdxjs":"^3.0.0","path":"^0.12.7"},"devDependencies":{"ava":"^6.1.3","execa":"^9.3.0"},"scripts":{"test":"ava"},"_id":"mdx2vast@0.5.0","gitHead":"415f4d84f24502f415680c4bca3e022ecc59bb96","bugs":{"url":"https://github.com/jdkato/mdx2vast/issues"},"_nodeVersion":"22.22.3","_npmVersion":"10.9.8","dist":{"integrity":"sha512-voiYLXbPu5x+7JiSyklKK7YsgkRUorovcs2tFykZdUfBfFoFrxN2C7mN3+mSeq8yfbVoPp9j+6ek+9TSAwfXag==","shasum":"bbb90b07085b42f677c9ce5296fcfca5dc82f987","tarball":"https://registry.npmjs.org/mdx2vast/-/mdx2vast-0.5.0.tgz","fileCount":6,"unpackedSize":11065,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCICUyr+XIp4a2bg1VzHZHCBAiVzeqAetRsU/OaWgDUHwoAiEAt2Ox59c+u4aLH+87apxIQMcDU4+1zzigggZW9QwU7Vo="}]},"_npmUser":{"name":"jdkato","email":"jdkato24@gmail.com"},"directories":{},"maintainers":[{"name":"jdkato","email":"jdkato24@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/mdx2vast_0.5.0_1785504922800_0.24207094698803"},"_hasShrinkwrap":false}},"time":{"created":"2025-03-09T01:44:03.987Z","modified":"2026-07-31T13:35:23.139Z","0.1.0":"2025-03-09T01:44:04.190Z","0.2.0":"2025-03-09T02:19:13.544Z","0.2.1":"2025-03-09T02:33:06.969Z","0.3.0":"2025-03-12T00:10:26.069Z","0.3.1":"2026-01-21T09:33:28.666Z","0.5.0":"2026-07-31T13:35:22.950Z"},"bugs":{"url":"https://github.com/jdkato/mdx2vast/issues"},"author":{"name":"jdkato"},"license":"MIT","homepage":"https://vale.sh/docs/formats/mdx","keywords":["mdx","html","jsx","vale"],"repository":{"type":"git","url":"git+https://github.com/jdkato/mdx2vast.git"},"description":"CLI to convert MDX to HTML while preserving JSX and expressions.","maintainers":[{"name":"jdkato","email":"jdkato24@gmail.com"}],"readme":"# mdx2vast\n\n`mdx2vast` is a CLI tool that converts MDX files to HTML while preserving\nJSX syntax and components. This format (HTML that retains the structure of\nthe original file) is used by [Vale][1] to provide markup-aware linting.\n\n## Installation\n\nEnsure you have [Node.js](https://nodejs.org/) installed on your system.\n\n### Install via `npm`:\n\n```sh\nnpm install -g mdx2vast\n```\n\n## Usage\n\nRun the CLI tool with the following command:\n\n```sh\nmdx2vast input.mdx\n```\n\nIt also reads a single document from standard input:\n\n```sh\nmdx2vast < input.mdx\n```\n\n### Batch mode\n\nStarting the process costs about 160 ms, nearly all of it importing the MDX\ntoolchain, against roughly 4 ms to convert an average document. A caller with\nthousands of files spends most of its time on imports it has already done.\n\n`--batch` reads documents until standard input closes and answers each one, so\nthat cost is paid once. On a 7,500-file corpus this is the difference between\nabout fifteen minutes and about thirty seconds.\n\n```sh\nmdx2vast --batch < frames\n```\n\nDocuments are length-prefixed rather than delimited, because MDX may contain\nany byte sequence a delimiter could use:\n\n```\nrequest   <byteLength> LF <bytes>\nresponse  \"ok \" <byteLength> LF <bytes>\n          \"err \" <byteLength> LF <message>\n```\n\nLengths count bytes rather than characters, so multi-byte content frames\ncorrectly. A document that fails to convert answers `err` and the run\ncontinues; one unparseable file does not end the batch.\n\nOutput is identical to single-document mode — the test suite asserts this\nper fixture.\n\n[1]: https://vale.sh/\n","readmeFilename":"README.md"}