modesty / pdf2json

converts binary PDF to JSON and text, for server-side PDF processing and command-line use.
https://github.com/modesty/pdf2json
Other
1.99k stars 378 forks source link

feat: use `node:` prefix #328

Closed himself65 closed 5 months ago

himself65 commented 8 months ago

Add node: as the prefix to be compatible with the modern JS environment.

Backward compatibility: nodejs 14 and later

Fixes: https://github.com/stackblitz/webcontainer-core/issues/1312, https://github.com/run-llama/LlamaIndexTS/issues/478

himself65 commented 5 months ago

makes entire codebase less isomorphic

Of course not; deno only supports the node: prefix (https://docs.deno.com/runtime/manual/node/node_specifiers), and so does Cloudflare worker. without node prefix, the code will rely on bundler-specific