Open BenjaminAster opened 10 months ago
You should be able to use this package in bun (not fully tested) through a direct github install.
pnpm i github:b-fuze/deno-dom
And use it as you would in deno, minus the url
import {
DOMParser,
Element,
} from "deno-dom/deno-dom-wasm.ts";
There's no version pinning, but this package wasn't meant to work in Node/Bun anyway and creating an npm release may introduce future maintenance burden.
Nothing about this package is Deno-specific. Node.js currently can't run it because of TypeScript and
.ts
file imports, but Bun for example can (I tried it out). It would be awesome if this package would be published to npm, which would be as simple as:build/deno-wasm/.gitignore
file or adding abuild/deno-wasm/.npmignore
file withas its content.
npm publish --access public