document-cli 1.11.12 → 1.11.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -0
- package/dist/cli.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -14,6 +14,7 @@ graph TD
|
|
|
14
14
|
pdfcodec("pdf-codec")
|
|
15
15
|
mdcodec("markdown-codec")
|
|
16
16
|
documents("documents.js")
|
|
17
|
+
mcp("document-mcp")
|
|
17
18
|
cli("document-cli")
|
|
18
19
|
|
|
19
20
|
schema --> ooxml
|
|
@@ -25,8 +26,11 @@ graph TD
|
|
|
25
26
|
odf --> documents
|
|
26
27
|
pdfcodec --> documents
|
|
27
28
|
mdcodec --> documents
|
|
29
|
+
documents --> mcp
|
|
30
|
+
pdfcodec --> mcp
|
|
28
31
|
documents --> cli
|
|
29
32
|
odf --> cli
|
|
33
|
+
pdfcodec --> cli
|
|
30
34
|
|
|
31
35
|
click schema "https://github.com/ExaDev/document-schema.js" "document-schema.js"
|
|
32
36
|
click ooxml "https://github.com/ExaDev/ooxml.js" "ooxml.js"
|
|
@@ -34,6 +38,7 @@ graph TD
|
|
|
34
38
|
click pdfcodec "https://github.com/ExaDev/pdf-codec" "pdf-codec"
|
|
35
39
|
click mdcodec "https://github.com/ExaDev/markdown-codec" "markdown-codec"
|
|
36
40
|
click documents "https://github.com/ExaDev/documents.js" "documents.js"
|
|
41
|
+
click mcp "https://github.com/ExaDev/document-mcp" "document-mcp"
|
|
37
42
|
click cli "https://github.com/ExaDev/document-cli" "document-cli"
|
|
38
43
|
|
|
39
44
|
style cli fill:#f9a825,stroke:#333,stroke-width:3px
|
|
@@ -43,6 +48,8 @@ graph TD
|
|
|
43
48
|
|
|
44
49
|
`documents.js` is a library, not a tool — everything it does happens through function calls from TypeScript/JavaScript. Most people who want to convert a docx to a PDF, extract an `.odb` table to CSV, or poke at a PDF's structure from a terminal don't want to write a script to do it. `document-cli` is that missing entry point: every one of documents.js's 27 direct conversion pairs, its generic converter, its `.odm`/`.odb` extraction functions (including a bounded SQL engine over an `.odb`'s own tables and full report rendering), its PDF inspector, and its document metadata/source-font introspection become a single command-line invocation, and its seven live-view editors (docx/pptx/odt/odp/ods/odg/markdown) become a keyboard-driven terminal app that never needs a code editor open at all.
|
|
45
50
|
|
|
51
|
+
[`document-mcp`](https://github.com/ExaDev/document-mcp) is the sibling frontend over the identical `documents.js` library — an MCP server rather than a terminal CLI/TUI — so the two are independent consumers of one shared implementation, each exposing whatever subset of it suits a human at a terminal versus an MCP-speaking agent.
|
|
52
|
+
|
|
46
53
|
The CLI and the TUI are deliberately not two separate implementations of the same logic. The TUI's own document-opening, saving, and PDF-export code (`src/tui/format/`) calls the identical `documents.js` functions the CLI commands call — `openDocx`/`createDocx`/`docxToPdf` and their five siblings per format, plus `readOdbTables`/`readPdf` for the two read-only sources — so there is exactly one place either surface can drift from what documents.js itself does: nowhere.
|
|
47
54
|
|
|
48
55
|
## Getting started
|
package/dist/cli.js
CHANGED
package/dist/index.cjs
CHANGED
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "document-cli",
|
|
3
|
-
"version": "1.11.
|
|
3
|
+
"version": "1.11.13",
|
|
4
4
|
"description": "CLI and interactive Ink TUI for documents.js: every docx/pptx/odt/odp/ods/odg/odf/pdf/odm/odb/xlsx/markdown conversion, bridge, and editor as a scriptable command or a terminal app.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": {
|