How to use npm module in DENO?

Deno provides a Node Compatibility Library, that will allow to use some NPM packages that do not use non-polyfilled Node.js APIs. You’ll be able to require the package by using https://deno.land/std/node/module.ts The following works on deno 1.0.0 import { createRequire } from “https://deno.land/std/node/module.ts”; const require = createRequire(import.meta.url); const esprima = require(“esprima”); const program = ‘const … Read more