1

I want to know how can I use this NPM package inside my Deno application?

Hasani
  • 3,543
  • 14
  • 65
  • 125
  • what have you tried so far? – mfulton26 Feb 23 '22 at 20:31
  • @mfulton26: Nothing as I am new in Deno. I searched to see if I can find this library between third party libraries on deno.land but couldn't find it. I don't know how to import it inside a Deno application. – Hasani Feb 23 '22 at 20:35
  • I think there's a fairly straight forward, generic answer for this (which I've posted below) but in case you have trouble getting useful answers to questions in the future I suggest reading [How do I ask a good question? - Help Center - Stack Overflow](https://stackoverflow.com/help/how-to-ask); sharing specifics about what online web searching yielded you but where it fell short for you gives others insights into more specific issues you may be facing with which they may be able to help you with; my best wishes! – mfulton26 Feb 23 '22 at 20:39
  • Be cautious about using transpilation service providers like the ones mentioned in [this answer](https://stackoverflow.com/a/71243737/438273). While they do effort to shim/patch/polyfill and rewrite specifiers to be compatible with Deno's module system (ESM), this is not always possible (e.g if the module uses a Node-exclusive API), and so the burden is on you to audit the transpilation result with every source code revision. – jsejcksn Feb 23 '22 at 21:40
  • Does this answer your question? [How to use npm module in DENO?](https://stackoverflow.com/questions/61821038/how-to-use-npm-module-in-deno) – ThomasReggi Aug 25 '22 at 21:35

1 Answers1

2

You should be able to find answers to most, if not all, of your questions in Deno's manual:

  1. Using npm/Node.js code | Manual | Deno

Specifically 5.1 Packages from CDNs | Manual | Deno.

I've used Skypack but I hear other CDNs work well too (e.g. JSPM).

mfulton26
  • 29,956
  • 6
  • 64
  • 88