DenoDDeno
Powered by
StoneCypherS
Denoβ€’2w agoβ€’
1 reply
StoneCypher

How do I include a native binary in a javascript module in portable deno?

🌍3rd Party ModuleπŸ—οΈNode CompatibilityπŸ“¦npm PackageπŸ›°οΈFFI / Native Code
Hi. This might be a silly question, and if so I apologize

I need to include a native binary for just Windows in a node module I'm going to publish. I'm here because I'm trying to ensure deno compatability (I'm also in the bun discord for similar reasons)

Node has several options for this - gyp, napi, pre-gyp, optionalDependencies, and I'm out of date, so maybe others. There might also be the possibly of just stuffing it in as a file and running it with child_process.exec or whatever

I'm here to ask what the "right way"(s) is/are to do this in Deno. Bonus points if you have opinions about compatability with the other runtimes.

Sorry, I know my tags on this aren't great

Thanks
Deno banner
DenoJoin
Chat about Deno, a modern runtime for JavaScript and TypeScript.
20,934Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

Can I "execute" javascript in deno?
alex-009Aalex-009 / help
2y ago
How do I bundle with deno (with javascript) instead of esbuild?
EllEEll / help
7mo ago
How can I execute DOM-reliant javascript in deno_core?
aquakiloAaquakilo / help
2y ago