Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Are deno packages usable from the node side of the ecosystem ? and vice versa ?


You can use Node modules in Deno using https://esm.sh/

You can use Deno modules in Node using https://github.com/denoland/dnt


Depends if your package uses any specific Deno/Node APIs. Deno also only supports ESM (which you should be using anyway).

There is, however, a Node compatibility layer for Deno: https://deno.land/manual@v1.14.1/npm_nodejs/std_node




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: