{"_id":"@dhruv2mars/mdv-ts","_rev":"2-5e3a412d03258d394abfd9854cf452ad","name":"@dhruv2mars/mdv-ts","dist-tags":{"latest":"0.0.5"},"versions":{"0.0.1":{"name":"@dhruv2mars/mdv-ts","version":"0.0.1","keywords":["markdown","terminal","tui","cli","opentui"],"license":"MIT","_id":"@dhruv2mars/mdv-ts@0.0.1","maintainers":[{"name":"dhruv2mars","email":"dhruv.sharma10102005@gmail.com"}],"homepage":"https://github.com/Dhruv2mars/mdv-ts#readme","bugs":{"url":"https://github.com/Dhruv2mars/mdv-ts/issues"},"bin":{"mdv-ts":"dist/bin/mdv-ts.js"},"dist":{"shasum":"fdf1ed0f2ded999b44ffb458dd594cadc37abe80","tarball":"https://registry.npmjs.org/@dhruv2mars/mdv-ts/-/mdv-ts-0.0.1.tgz","fileCount":28,"integrity":"sha512-zu3b7AmO+81jBX/9cmexdkznQKoJ2+nYTnR1ui/kb0A2edQ3GmJpWUeeG4A8xotgD4IGWxSiYfdksD428JIQ3A==","signatures":[{"sig":"MEQCIAWyAftnJkgPzRFgYgMpZKVe+vyjpi70ZyaLgNLOrXZNAiB3eaHxXsbYatqYgbZH6JOyJMNoyxm2/vcv8qCY/hq6Kw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":305200},"type":"module","engines":{"bun":">=1.1","node":">=18"},"gitHead":"7274fba90bb1571a3d667793a56bad1ffdeef414","scripts":{"dev":"bun src/bin/mdv-ts.ts","lint":"tsc --noEmit","test":"vitest run","build":"bun scripts/build.ts","mdv-ts":"bun src/bin/mdv-ts.ts","selftest":"bun scripts/selftest.ts"},"_npmUser":{"name":"dhruv2mars","email":"dhruv.sharma10102005@gmail.com"},"repository":{"url":"git+https://github.com/Dhruv2mars/mdv-ts.git","type":"git"},"_npmVersion":"11.13.0","description":"Terminal markdown visualizer/editor (TypeScript + OpenTUI)","directories":{},"_nodeVersion":"24.12.0","dependencies":{"marked":"^18.0.7","chokidar":"^5.0.0","commander":"^15.0.0","strip-ansi":"^7.2.0","string-width":"^8.2.2","@opentui/core":"^0.4.5"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^4.1.10","bun-types":"^1.3.14","@types/bun":"latest","typescript":"^5.9.2","@types/node":"^26.1.2"},"_npmOperationalInternal":{"tmp":"tmp/mdv-ts_0.0.1_1785408799971_0.05423020303564985","host":"s3://npm-registry-packages-npm-production"}},"0.0.5":{"name":"@dhruv2mars/mdv-ts","version":"0.0.5","description":"Terminal markdown visualizer/editor (TypeScript + OpenTUI)","type":"module","bin":{"mdv-ts":"bin/mdv-ts.js"},"scripts":{"build":"bun scripts/build.ts","prepack":"bun run build","dev":"bun src/bin/mdv-ts.ts","test":"vitest run --dir tests","mdv-ts":"bun src/bin/mdv-ts.ts","selftest":"bun scripts/selftest.ts","lint":"tsc --noEmit","release:tag":"bun scripts/release-tag.mjs","release:print":"bun scripts/release-tag.mjs --print"},"engines":{"node":">=18","bun":">=1.1"},"license":"MIT","publishConfig":{"access":"public","provenance":true},"repository":{"type":"git","url":"git+https://github.com/Dhruv2mars/mdv-ts.git"},"homepage":"https://github.com/Dhruv2mars/mdv-ts#readme","bugs":{"url":"https://github.com/Dhruv2mars/mdv-ts/issues"},"keywords":["markdown","terminal","tui","cli","opentui"],"devDependencies":{"@types/bun":"latest","@types/node":"^26.1.2","bun-types":"^1.3.14","typescript":"^5.9.2","vitest":"^4.1.10"},"dependencies":{"@opentui/core":"^0.4.5","chokidar":"^5.0.0","commander":"^15.0.0","marked":"^18.0.7","string-width":"^8.2.2","strip-ansi":"^7.2.0"},"gitHead":"4946bed37def930c0ba852a624209e1009818e36","_id":"@dhruv2mars/mdv-ts@0.0.5","_nodeVersion":"24.18.0","_npmVersion":"11.16.0","dist":{"integrity":"sha512-kWjxj/8oEHXArS9HzrpdR+zFGypfXC2Rdq4KDBmXzFZoT/HZOFRDbDSRR9VjwDjVbPQsULjnQM6yU2mm4ayqDQ==","shasum":"9c5c97bf699bc30871854efdfa984853fd465a09","tarball":"https://registry.npmjs.org/@dhruv2mars/mdv-ts/-/mdv-ts-0.0.5.tgz","fileCount":16,"unpackedSize":296712,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@dhruv2mars%2fmdv-ts@0.0.5","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIGCCHZUeS9Trlrt3Pvwt+lMUoWc7sEJ/0zgi5HUvJM3UAiAoVxlaVmoqwlIqeYf5PXdUTbxN8iYegNIJBYz2yrq7mw=="}]},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:e5320a73-bbde-4d44-b63f-c377ce0b9c6f"}},"directories":{},"maintainers":[{"name":"dhruv2mars","email":"dhruv.sharma10102005@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/mdv-ts_0.0.5_1785412846858_0.8417510659622685"},"_hasShrinkwrap":false}},"time":{"created":"2026-07-30T10:53:19.809Z","modified":"2026-07-30T12:00:56.315Z","0.0.1":"2026-07-30T10:53:20.104Z","0.0.5":"2026-07-30T12:00:47.018Z"},"bugs":{"url":"https://github.com/Dhruv2mars/mdv-ts/issues"},"license":"MIT","homepage":"https://github.com/Dhruv2mars/mdv-ts#readme","keywords":["markdown","terminal","tui","cli","opentui"],"repository":{"type":"git","url":"git+https://github.com/Dhruv2mars/mdv-ts.git"},"description":"Terminal markdown visualizer/editor (TypeScript + OpenTUI)","maintainers":[{"name":"dhruv2mars","email":"dhruv.sharma10102005@gmail.com"}],"readme":"# mdv-ts\n\nTerminal-first Markdown visualizer/editor — TypeScript + [OpenTUI](https://opentui.com) port of [`mdv`](https://github.com/Dhruv2mars/mdv).\n\nOpen a file, type on the left, see the formatted preview on the right.\nFirst run opens a Home screen and an in-app guide.\n\n## Install\n\n```bash\nbun add -g @dhruv2mars/mdv-ts\n# or\nnpm i -g @dhruv2mars/mdv-ts\n```\n\nBinary command: `mdv-ts`\n\nThe interactive TUI needs [Bun](https://bun.sh), because OpenTUI ships its\nnative renderer bindings for Bun only. If you install with npm, `mdv-ts`\nre-runs itself under Bun automatically whenever Bun is on your `PATH`.\n\nWithout Bun the non-interactive commands still work anywhere Node 18+ runs:\n\n```bash\nmdv-ts --help\nmdv-ts notes.md | less   # piped/non-TTY preview\n```\n\n## Quickstart\n\n```bash\nmdv-ts\n```\n\n- Type a file name like `notes.md`\n- Press `Enter`\n- Start typing\n- Press `Ctrl+S` to save\n\nOpen an existing file:\n\n```bash\nmdv-ts README.md\n```\n\nIn-app docs:\n- macOS: `Cmd+,`\n- Windows/Linux: `Ctrl+,`\n\n## Everyday Tasks\n\nRead without editing:\n\n```bash\nmdv-ts --readonly README.md\n```\n\nStream Markdown from another command:\n\n```bash\ntail -f notes.md | mdv-ts --stream\n```\n\nUpdate the installed package:\n\n```bash\nmdv-ts update\n```\n\n## Keybinds\n\nIn-app docs: `Cmd+,/Ctrl+,` (Docs + Settings modal).\n\nQuick ref:\n- `Ctrl+Q` quit\n- `Ctrl+S` save\n- `Ctrl+R` reload from disk\n- `Shift+Tab` or `Ctrl+T` switch between typing and preview scrolling\n- `Ctrl+F` search, `Ctrl+H` replace, `Ctrl+G` goto line\n- `F3`/`Shift+F3` next/prev search result\n- Conflict flow: `Ctrl+J`/`Ctrl+U` hunk nav, `Ctrl+E` apply, `Ctrl+K` keep local, `Ctrl+M` merge\n\n## Flags\n\n- `--readonly` disable editing\n- `--no-watch` disable file watcher\n- `--stream` read markdown from stdin (no `PATH` arg)\n- `--perf` show perf info in status line\n- `--theme <auto|default|high-contrast>` set color theme\n- `--no-color` disable ANSI color\n- `--focus <editor|view>` initial focused pane\n\n## Env\n\n- `MDV_FORCE_TUI=1` force TUI even when not a TTY\n- `MDV_STREAM_MAX_BYTES` stdin buffer cap in stream mode (default 4MB)\n- `MDV_INSTALL_ROOT` override `~/.mdv` for onboarding state\n- `COLUMNS` non-TTY preview width (default 80)\n\n## Dev\n\n```bash\nbun install\nbun test\nbun run dev -- README.md\nbun run build\nbun run selftest\n```\n\n## License\n\nMIT\n","readmeFilename":"README.md"}