{"id":25929,"library":"mdt2json","title":"mdt2json","description":"A lightweight Markdown table to minified JSON transpiler with CLI and programmatic API. v1.1.0 released 2025-07-29. Supports converting markdown tables to compact JSON, including optional HTML inclusion. Ships TypeScript types. Differentiators: no dependencies, ESM/CJS dual module, simple API with parse function and CLI tool. Compared to alternatives like markdown-table-to-json, this offers minified output and HTML embedding.","status":"active","version":"1.1.0","language":"javascript","source_language":"en","source_url":"https://github.com/zeon256/mdt2json","tags":["javascript","markdown","table","json","transpiler","typescript"],"install":[{"cmd":"npm install mdt2json","lang":"bash","label":"npm"},{"cmd":"yarn add mdt2json","lang":"bash","label":"yarn"},{"cmd":"pnpm add mdt2json","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"ESM only; using require will fail.","wrong":"const parse = require('mdt2json')","symbol":"parse","correct":"import { parse } from 'mdt2json'"},{"note":"Default export is the parse function; use named import for clarity.","wrong":"const mdt2json = require('mdt2json')","symbol":"default","correct":"import mdt2json from 'mdt2json'"},{"note":"Type imports available for TypeScript users.","wrong":null,"symbol":"parse (type)","correct":"import type { ParseOptions } from 'mdt2json'"}],"quickstart":{"code":"import { parse } from 'mdt2json';\nconst markdown = `| Name | Age |\n| --- | --- |\n| Alice | 30 |\n| Bob | 25 |`;\nconst json = parse(markdown);\nconsole.log(json);\n// [[\"Name\",\"Age\"],[\"Alice\",30],[\"Bob\",25]]","lang":"typescript","description":"Parse a markdown table string to minified JSON array, demonstrating basic usage with ESM import."},"warnings":[{"fix":"Update all imports to 'mdt2json' and reinstall.","message":"Package renamed from 'mdtable2json' to 'mdt2json' between v0.2.0 and v1.0.0. Existing imports from 'mdtable2json' will break.","severity":"breaking","affected_versions":">=0.0.0 <1.0.0"},{"fix":"Use with caution; no fix needed yet.","message":"CLI flag --include-html added in v1.1.0 is experimental and may change in future releases.","severity":"deprecated","affected_versions":">=1.1.0"},{"fix":"Set \"type\": \"module\" or use dynamic import: const { parse } = await import('mdt2json').","message":"Module is ESM-only (type: module in package.json). Using require() or running in CommonJS environment will throw an error.","severity":"gotcha","affected_versions":">=1.0.0"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Use import or dynamic import; set type: module in package.json.","cause":"Package is ESM-only; CommonJS require() fails.","error":"Error [ERR_REQUIRE_ESM]: require() of ES Module /path/to/node_modules/mdt2json/dist/index.js from /path/to/project/index.js not supported."}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}