@kreuzberg/html-to-markdown-wasm 2.19.0-rc.1

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.
@@ -0,0 +1,55 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ export const memory: WebAssembly.Memory;
4
+ export const __wbg_wasmconversionoptionshandle_free: (a: number, b: number) => void;
5
+ export const __wbg_wasmhtmlextraction_free: (a: number, b: number) => void;
6
+ export const __wbg_wasminlineimage_free: (a: number, b: number) => void;
7
+ export const __wbg_wasminlineimageconfig_free: (a: number, b: number) => void;
8
+ export const __wbg_wasminlineimagewarning_free: (a: number, b: number) => void;
9
+ export const __wbg_wasmmetadataconfig_free: (a: number, b: number) => void;
10
+ export const convert: (a: number, b: number, c: number, d: number) => void;
11
+ export const convertBytes: (a: number, b: number, c: number) => void;
12
+ export const convertBytesWithInlineImages: (a: number, b: number, c: number, d: number) => void;
13
+ export const convertBytesWithMetadata: (a: number, b: number, c: number, d: number) => void;
14
+ export const convertBytesWithOptionsHandle: (a: number, b: number, c: number) => void;
15
+ export const convertWithInlineImages: (a: number, b: number, c: number, d: number, e: number) => void;
16
+ export const convertWithMetadata: (a: number, b: number, c: number, d: number, e: number) => void;
17
+ export const convertWithOptionsHandle: (a: number, b: number, c: number, d: number) => void;
18
+ export const createConversionOptionsHandle: (a: number, b: number) => void;
19
+ export const wasmconversionoptionshandle_new: (a: number, b: number) => void;
20
+ export const wasmhtmlextraction_inlineImages: (a: number, b: number) => void;
21
+ export const wasmhtmlextraction_markdown: (a: number, b: number) => void;
22
+ export const wasmhtmlextraction_warnings: (a: number, b: number) => void;
23
+ export const wasminlineimage_attributes: (a: number) => number;
24
+ export const wasminlineimage_data: (a: number) => number;
25
+ export const wasminlineimage_description: (a: number, b: number) => void;
26
+ export const wasminlineimage_dimensions: (a: number, b: number) => void;
27
+ export const wasminlineimage_filename: (a: number, b: number) => void;
28
+ export const wasminlineimage_format: (a: number, b: number) => void;
29
+ export const wasminlineimage_source: (a: number, b: number) => void;
30
+ export const wasminlineimageconfig_new: (a: number, b: number) => number;
31
+ export const wasminlineimageconfig_set_captureSvg: (a: number, b: number) => void;
32
+ export const wasminlineimageconfig_set_filenamePrefix: (a: number, b: number, c: number) => void;
33
+ export const wasminlineimageconfig_set_inferDimensions: (a: number, b: number) => void;
34
+ export const wasminlineimagewarning_index: (a: number) => number;
35
+ export const wasminlineimagewarning_message: (a: number, b: number) => void;
36
+ export const wasmmetadataconfig_extract_document: (a: number) => number;
37
+ export const wasmmetadataconfig_extract_headers: (a: number) => number;
38
+ export const wasmmetadataconfig_extract_images: (a: number) => number;
39
+ export const wasmmetadataconfig_extract_links: (a: number) => number;
40
+ export const wasmmetadataconfig_extract_structured_data: (a: number) => number;
41
+ export const wasmmetadataconfig_max_structured_data_size: (a: number) => number;
42
+ export const wasmmetadataconfig_new: () => number;
43
+ export const wasmmetadataconfig_set_extract_document: (a: number, b: number) => void;
44
+ export const wasmmetadataconfig_set_extract_headers: (a: number, b: number) => void;
45
+ export const wasmmetadataconfig_set_extract_images: (a: number, b: number) => void;
46
+ export const wasmmetadataconfig_set_extract_links: (a: number, b: number) => void;
47
+ export const wasmmetadataconfig_set_extract_structured_data: (a: number, b: number) => void;
48
+ export const wasmmetadataconfig_set_max_structured_data_size: (a: number, b: number) => void;
49
+ export const init: () => void;
50
+ export const __wbindgen_export: (a: number, b: number) => number;
51
+ export const __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
52
+ export const __wbindgen_export3: (a: number) => void;
53
+ export const __wbindgen_export4: (a: number, b: number, c: number) => void;
54
+ export const __wbindgen_add_to_stack_pointer: (a: number) => number;
55
+ export const __wbindgen_start: () => void;
@@ -0,0 +1,25 @@
1
+ {
2
+ "name": "html-to-markdown-wasm",
3
+ "type": "module",
4
+ "collaborators": [
5
+ "Na'aman Hirschfeld <nhirschfeld@gmail.com>"
6
+ ],
7
+ "description": "HTML to Markdown conversion for WebAssembly targets",
8
+ "version": "2.19.0-rc.1",
9
+ "license": "MIT",
10
+ "repository": {
11
+ "type": "git",
12
+ "url": "https://github.com/kreuzberg-dev/html-to-markdown"
13
+ },
14
+ "files": [
15
+ "html_to_markdown_wasm_bg.wasm",
16
+ "html_to_markdown_wasm.js",
17
+ "html_to_markdown_wasm.d.ts"
18
+ ],
19
+ "main": "html_to_markdown_wasm.js",
20
+ "homepage": "https://github.com/kreuzberg-dev/html-to-markdown",
21
+ "types": "html_to_markdown_wasm.d.ts",
22
+ "sideEffects": [
23
+ "./snippets/*"
24
+ ]
25
+ }
package/package.json ADDED
@@ -0,0 +1,68 @@
1
+ {
2
+ "name": "@kreuzberg/html-to-markdown-wasm",
3
+ "version": "2.19.0-rc.1",
4
+ "description": "High-performance HTML to Markdown converter - WebAssembly bindings",
5
+ "main": "dist/html_to_markdown_wasm.js",
6
+ "types": "dist/html_to_markdown_wasm.d.ts",
7
+ "exports": {
8
+ ".": {
9
+ "import": "./dist/html_to_markdown_wasm.js",
10
+ "types": "./dist/html_to_markdown_wasm.d.ts",
11
+ "default": "./dist/html_to_markdown_wasm.js"
12
+ },
13
+ "./dist-node": {
14
+ "import": "./dist-node/html_to_markdown_wasm.js",
15
+ "require": "./dist-node/html_to_markdown_wasm.js",
16
+ "types": "./dist-node/html_to_markdown_wasm.d.ts"
17
+ },
18
+ "./dist-node/*": "./dist-node/*",
19
+ "./dist-web": {
20
+ "import": "./dist-web/html_to_markdown_wasm.js",
21
+ "types": "./dist-web/html_to_markdown_wasm.d.ts"
22
+ },
23
+ "./dist-web/*": "./dist-web/*"
24
+ },
25
+ "repository": "https://github.com/kreuzberg-dev/html-to-markdown",
26
+ "homepage": "https://github.com/kreuzberg-dev/html-to-markdown",
27
+ "license": "MIT",
28
+ "author": "Na'aman Hirschfeld <nhirschfeld@gmail.com>",
29
+ "bugs": "https://github.com/kreuzberg-dev/html-to-markdown/issues",
30
+ "keywords": [
31
+ "html",
32
+ "markdown",
33
+ "converter",
34
+ "rust",
35
+ "wasm",
36
+ "webassembly"
37
+ ],
38
+ "files": [
39
+ "dist",
40
+ "dist-node",
41
+ "dist-web",
42
+ "README.md"
43
+ ],
44
+ "scripts": {
45
+ "build": "wasm-pack build --target bundler --out-dir dist && node ./scripts/patch-bundler-entry.js",
46
+ "build:nodejs": "wasm-pack build --target nodejs --out-dir dist-node && node ./scripts/patch-bundler-entry.js dist-node --types-only",
47
+ "build:web": "wasm-pack build --target web --out-dir dist-web && node ./scripts/patch-bundler-entry.js dist-web --types-only",
48
+ "build:all": "pnpm run build && pnpm run build:nodejs && pnpm run build:web && pnpm run cleanup:gitignore",
49
+ "cleanup:gitignore": "node ./scripts/cleanup-gitignore.js",
50
+ "test": "vitest run",
51
+ "test:watch": "vitest",
52
+ "test:wasm-pack": "wasm-pack test --headless --chrome",
53
+ "clean": "rm -rf dist dist-node dist-web node_modules pkg"
54
+ },
55
+ "devDependencies": {
56
+ "@types/node": "^25.0.3",
57
+ "tsx": "^4.21.0",
58
+ "vitest": "^4.0.16",
59
+ "wasm-pack": "^0.13.1"
60
+ },
61
+ "publishConfig": {
62
+ "registry": "https://registry.npmjs.org/",
63
+ "access": "public"
64
+ },
65
+ "dependencies": {
66
+ "up": "^1.0.2"
67
+ }
68
+ }