docling.rs 0.20.0 → 0.24.0
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 +6 -6
- package/deps.js +1 -1
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# docling.rs (Node.js / Bun bindings)
|
|
2
2
|
|
|
3
3
|
Native [Node.js](https://nodejs.org) / [Bun](https://bun.sh) bindings for
|
|
4
|
-
[docling.rs](https://github.com/
|
|
4
|
+
[docling.rs](https://github.com/docling-project/docling.rs) — a Rust port of
|
|
5
5
|
[docling](https://github.com/docling-project/docling). Convert Markdown, HTML,
|
|
6
6
|
DOCX, PPTX, XLSX, EPUB, ODF, LaTeX, email, PDF, images and more into a unified
|
|
7
7
|
`DoclingDocument`, and export it as **Markdown** or docling-core **JSON**.
|
|
@@ -102,7 +102,7 @@ PDF/image/METS input **throws** until they're on disk. Fetch them with a
|
|
|
102
102
|
one-liner from your app's directory (where you'll `npm install docling.rs`):
|
|
103
103
|
|
|
104
104
|
```bash
|
|
105
|
-
curl -fsSL https://raw.githubusercontent.com/
|
|
105
|
+
curl -fsSL https://raw.githubusercontent.com/docling-project/docling.rs/master/scripts/install/download_dependencies.sh | sh
|
|
106
106
|
```
|
|
107
107
|
|
|
108
108
|
```js
|
|
@@ -111,8 +111,8 @@ import { convertFileAsync } from 'docling.rs'
|
|
|
111
111
|
const res = await convertFileAsync('paper.pdf', { to: 'markdown' }) // ✅ works
|
|
112
112
|
```
|
|
113
113
|
|
|
114
|
-
`scripts/download_dependencies.sh` fetches everything from this repo's
|
|
115
|
-
[GitHub Releases](https://github.com/
|
|
114
|
+
`scripts/install/download_dependencies.sh` fetches everything from this repo's
|
|
115
|
+
[GitHub Releases](https://github.com/docling-project/docling.rs/releases) straight into
|
|
116
116
|
`./models` and `./.pdfium` — which this package (and the Rust CLI) look for by
|
|
117
117
|
default, relative to the process's current directory, so no env vars or setup
|
|
118
118
|
call are needed afterwards:
|
|
@@ -136,7 +136,7 @@ call are needed afterwards:
|
|
|
136
136
|
> Run it from wherever your app lives — the script only writes to `./models`
|
|
137
137
|
> and `./.pdfium` under the current directory, e.g. in a container build step:
|
|
138
138
|
> ```bash
|
|
139
|
-
> cd /path/to/your/app && curl -fsSL https://raw.githubusercontent.com/
|
|
139
|
+
> cd /path/to/your/app && curl -fsSL https://raw.githubusercontent.com/docling-project/docling.rs/master/scripts/install/download_dependencies.sh | sh
|
|
140
140
|
> ```
|
|
141
141
|
>
|
|
142
142
|
> To use your own export/host instead, point the env vars at it directly:
|
|
@@ -242,7 +242,7 @@ cd examples
|
|
|
242
242
|
npm install
|
|
243
243
|
node node-basic.mjs # ESM: file, bytes, JSON, reuse
|
|
244
244
|
bun run bun-basic.ts # Bun + TypeScript: async + streaming
|
|
245
|
-
node pdf-pipeline.mjs # warm Pipeline for PDFs (run scripts/download_dependencies.sh first)
|
|
245
|
+
node pdf-pipeline.mjs # warm Pipeline for PDFs (run scripts/install/download_dependencies.sh first)
|
|
246
246
|
```
|
|
247
247
|
|
|
248
248
|
- [`examples/node-basic.mjs`](examples/node-basic.mjs) — Node.js (ESM): file, bytes, JSON, reuse.
|
package/deps.js
CHANGED
|
@@ -139,7 +139,7 @@ function downloadGuide() {
|
|
|
139
139
|
'straight into ./models and ./.pdfium, which this package looks for by',
|
|
140
140
|
'default; no env vars needed afterwards):',
|
|
141
141
|
'',
|
|
142
|
-
' curl -fsSL https://raw.githubusercontent.com/
|
|
142
|
+
' curl -fsSL https://raw.githubusercontent.com/docling-project/docling.rs/master/scripts/download_dependencies.sh | sh',
|
|
143
143
|
'',
|
|
144
144
|
'or, from a checkout of the repo:',
|
|
145
145
|
'',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "docling.rs",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.24.0",
|
|
4
4
|
"description": "Node.js / Bun bindings for docling.rs — a Rust port of docling. Convert Markdown, HTML, DOCX, PPTX, XLSX, PDF, images and more into a unified DoclingDocument (Markdown or docling-core JSON).",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"docling",
|
|
@@ -15,10 +15,10 @@
|
|
|
15
15
|
"license": "MIT",
|
|
16
16
|
"repository": {
|
|
17
17
|
"type": "git",
|
|
18
|
-
"url": "git+https://github.com/
|
|
18
|
+
"url": "git+https://github.com/docling-project/docling.rs.git",
|
|
19
19
|
"directory": "crates/docling-node"
|
|
20
20
|
},
|
|
21
|
-
"homepage": "https://github.com/
|
|
21
|
+
"homepage": "https://github.com/docling-project/docling.rs",
|
|
22
22
|
"main": "index.js",
|
|
23
23
|
"types": "index.d.ts",
|
|
24
24
|
"exports": {
|
|
@@ -64,8 +64,8 @@
|
|
|
64
64
|
"@napi-rs/cli": "^2.18.4"
|
|
65
65
|
},
|
|
66
66
|
"optionalDependencies": {
|
|
67
|
-
"docling.rs-linux-x64-gnu": "0.
|
|
68
|
-
"docling.rs-linux-arm64-gnu": "0.
|
|
69
|
-
"docling.rs-win32-x64-msvc": "0.
|
|
67
|
+
"docling.rs-linux-x64-gnu": "0.24.0",
|
|
68
|
+
"docling.rs-linux-arm64-gnu": "0.24.0",
|
|
69
|
+
"docling.rs-win32-x64-msvc": "0.24.0"
|
|
70
70
|
}
|
|
71
71
|
}
|