D
Deno

help

How can I import https://github.com/ensdomains/ensjs-v3/tree/main in my deno

Bblock_hacks5/3/2023
This is npm package. I want to use it in my deno project. How can I achive it? I am trying this: import { ENS } from "https://raw.githubusercontent.com/ensdomains/ensjs-v3/main/packages/ensjs/src/index.ts"; However, I am having error: error: Relative import path "@ethersproject/contracts" not prefixed with / or ./ or ../ at https://raw.githubusercontent.com/ensdomains/ensjs-v3/main/packages/ensjs/src/index.ts:4:8
Bboywithkeyboard5/3/2023
maybe you can import it via esm.sh:
https://esm.sh/gh/ensdomains/ensjs-v3@main/packages/ensjs/src/index.ts
https://esm.sh/gh/ensdomains/ensjs-v3@main/packages/ensjs/src/index.ts
@block_hacks if it uses native node modules, then the npm: specifier would be another suggestion, but i recommend using esm.sh instead
Bblock_hacks5/3/2023
same error for esm.sh how can I use it with npm:? do you have code sample
Bboywithkeyboard5/3/2023
just
import package from 'npm:package_name'
import package from 'npm:package_name'
as documented here: https://deno.com/manual@v1.33.1/node/npm_specifiers

Looking for more? Join the community!

Recommended Posts
Testing that advanced types workI have a bunch of pretty advanced types, with generics and inferences all over the place. What woulHow can I reattach a debugger after disconnecting?I want to be able to start deno from a command line, but be able to attach to it from VSCode. I actPass string from TS to dll and return the passed string. (Like echo)Hey I am currently trying to understand the communication between a dll and my TS program. Currentlydeno-deploy limits on file storage?When deploying static files via deployctl, what are the storage limits / costs per GB? Couldn't findDoes anyone have a working OpenCL deno example?How can I use opencl with deno? Any examples?absolute imports in fresh?how do you get this accomplished?PhpStorm not resolving local import with import_map.jsonDeno Version : deno 1.33.0 (release, aarch64-apple-darwin) v8 11.4.183.1 typescript 5.0.3 PhpStorm how to cancel test watchon linux. ran `deno test -A --watch tools/json_tools/examples/*.ts` and `ctrl+c` does not seems to Sentry DenoOsUptime is not a function issueI'm using `npm:@sentry/node@7.49.0` and the following script to test the integration ```TypeScript /Property 'openKv' does not exist on type 'typeof Deno'. VSCodeSuch as the title say, I cant get the LSP to recognize openKv in the Deno namespace... deno 1.32.5+Import from direct URL works fine, but NOT via deps.ts``` // ./lib/foobar1.ts // everything is fine import { z } from "https://deno.land/x/zod@v3.21.4/modSmall Deno Script to upload to my server not working due to not being able to be run on CentOSAll my clients run Ubuntu or Debian, and the script will not run on CentOS due to the problem of a GEmpty output in Deno.CommandI’m trying to run the command `git log —grep='.'` from Deno. However, it always returns an empty outPreventing `Deno.stdin` reads from blockingIn a module for reading `Deno.stdin` input, there is a loop that reads and parses the returned bytes