{
  "name": "mdream",
  "type": "module",
  "version": "1.5.6",
  "description": "Ultra-performant HTML to Markdown Convertor Optimized for LLMs and llm.txt artifacts.",
  "author": {
    "name": "Harlan Wilton",
    "email": "harlan@harlanzw.com",
    "url": "https://harlanzw.com/"
  },
  "license": "MIT",
  "repository": {
    "type": "git",
    "url": "https://github.com/harlan-zw/mdream",
    "directory": "packages/mdream"
  },
  "exports": {
    ".": {
      "types": "./dist/index.d.mts",
      "workerd": "./dist/edge.mjs",
      "edge-light": "./dist/edge.mjs",
      "browser": "./dist/browser.mjs",
      "import": {
        "types": "./dist/index.d.mts",
        "default": "./dist/index.mjs"
      },
      "default": "./dist/index.mjs"
    },
    "./worker": {
      "types": "./dist/worker.d.mts",
      "import": {
        "types": "./dist/worker.d.mts",
        "default": "./dist/worker.mjs"
      },
      "default": "./dist/worker.mjs"
    },
    "./wasm": {
      "types": "./wasm/mdream_edge.d.ts",
      "default": "./wasm/mdream_edge.js"
    },
    "./wasm/*": "./wasm/*"
  },
  "main": "./dist/index.mjs",
  "unpkg": "./dist/iife.js",
  "jsdelivr": "./dist/iife.js",
  "types": "./dist/index.d.mts",
  "bin": {
    "mdream": "./bin/mdream.mjs"
  },
  "files": [
    "bin",
    "dist",
    "napi/",
    "wasm-bundler/",
    "wasm/"
  ],
  "browser": "./dist/browser.mjs",
  "dependencies": {},
  "optionalDependencies": {
    "@mdream/rust-android-arm-eabi": "1.5.6",
    "@mdream/rust-android-arm64": "1.5.6",
    "@mdream/rust-darwin-arm64": "1.5.6",
    "@mdream/rust-freebsd-x64": "1.5.6",
    "@mdream/rust-linux-arm-gnueabihf": "1.5.6",
    "@mdream/rust-linux-arm64-gnu": "1.5.6",
    "@mdream/rust-linux-x64-gnu": "1.5.6",
    "@mdream/rust-darwin-x64": "1.5.6",
    "@mdream/rust-linux-arm64-musl": "1.5.6",
    "@mdream/rust-linux-x64-musl": "1.5.6",
    "@mdream/rust-wasm32-wasi": "1.5.6",
    "@mdream/rust-win32-arm64-msvc": "1.5.6",
    "@mdream/rust-win32-x64-msvc": "1.5.6"
  },
  "devDependencies": {
    "@mdream/js": "1.5.6"
  },
  "scripts": {
    "flame": "pnpm build && unbuild bench/bundle && clinic flame -- node bench/bundle/dist/string.mjs 10",
    "bench:build": "pnpm build && unbuild bench/bundle",
    "bench:stream": "pnpm build && unbuild bench/bundle && hyperfine --runs 100 'node bench/bundle/dist/stream.mjs' --warmup 3",
    "bench:await": "pnpm build && unbuild bench/bundle && hyperfine --runs 100 'node bench/bundle/dist/await.mjs' --warmup 3",
    "bench:string": "pnpm build && unbuild bench/bundle && hyperfine --runs 100 'node bench/bundle/dist/string.mjs' --warmup 3",
    "ts": "node  --experimental-strip-types",
    "test:live": "curl -s https://docs.github.com/en/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax | node ./bin/mdream.mjs --origin https://docs.github.com | tee test/github-markdown.md",
    "test:images": "cat test/fixtures/test-origin.html | node ./bin/mdream.mjs --origin https://docs.github.com",
    "test:github:live": "curl -s https://docs.github.com/en/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax | node ./bin/mdream.mjs --origin https://docs.github.com | tee test/github-markdown.md",
    "test:github:file": "cat test/fixtures/github-markdown-complete.html | node ./bin/mdream.mjs --origin https://docs.github.com | tee test/github-markdown.md",
    "test:wiki:file": "pnpm build && cat test/fixtures/wikipedia-largest.html | node ./bin/mdream.mjs --origin https://en.wikipedia.org | tee test/wiki-markdown.md",
    "test:wiki-small:file": "cat test/fixtures/wikipedia-small.html | node ./bin/mdream.mjs --origin https://en.wikipedia.org | tee test/wiki-markdown.md",
    "build": "obuild",
    "build:native": "cd ../../crates/node && napi build --platform --release",
    "build:edge": "cd ../../crates/edge && wasm-pack build --target web --out-dir ../../packages/mdream/wasm --out-name mdream_edge && wasm-opt -Oz --enable-bulk-memory --enable-nontrapping-float-to-int --strip-producers ../../packages/mdream/wasm/mdream_edge_bg.wasm -o ../../packages/mdream/wasm/mdream_edge_bg.wasm && wasm-pack build --target bundler --out-dir ../../packages/mdream/wasm-bundler --out-name mdream_edge && wasm-opt -Oz --enable-bulk-memory --enable-nontrapping-float-to-int --strip-producers ../../packages/mdream/wasm-bundler/mdream_edge_bg.wasm -o ../../packages/mdream/wasm-bundler/mdream_edge_bg.wasm",
    "typecheck": "tsc --noEmit",
    "dev:prepare": "obuild --stub",
    "test": "vitest test",
    "test:browser": "vitest test --project=browser",
    "test:attw": "attw --pack"
  }
}