D
Deno

help

Is there a way to vendor npm specifier imports?

BBBustin Base4/13/2023
deno vendor npm:express Vendored 0 modules into scripts/vendor directory
IioB4/13/2023
Not yet iirc. Have you tried esm.sh?
BBBustin Base4/13/2023
I did but the types are all any and while my company firewall doesn't yet block esm.sh they probably will when they find out I can bypass artifactory using it I'll probably try again though, I was just hoping the npm specifiers would be a better experience.
IioB4/13/2023
npm specifiers aren't fully integrated with everything just yet /shrug
BBBustin Base4/13/2023
Yeah if I just run NPM_CONFIG_REGISTRY=$URL deno cache ... then it will work and cache but for some reason vscode extension cannot find that module in the cache and there seems to not be a way to specify the env var for vscode's sake.

Looking for more? Join the community!

Recommended Posts
How can I import with npm: specifiers through a proxy?My company blocks npmjs.com and they have setup an internal Artifactory instance. With nodejs I can Import modules from all files in directoryConsidering I have multiple ts files in a folder and all of them export the same type module. Can I Parsing Apache mime.types into dictionary Record<string, string>This code parses the official Apache `mime.types` from GitHub and creates a dictionary `Record<strinProvide own default error page in FreshHello! I'm seeing the following error ```pragma cannot be set when runtime is automatic at https:/Smoother DX using 3rd party modules written in TypeScript in the BrowserSay, for instance, I want to use the "async" standard library's Deferred implementation in some codegrpc / http2 / https in fresh.please a correct way to use grpc / http2 / https in fresh.Importing local Node.js modulesI have a local Node.js/TS package in local directory `/foo/bar/leet/package.json` – Is there any wayServer Sent Events with FreshHi! I am trying to use Server Sent Events (SSE) with fresh. I understand I should have an island thaTwind intellisense stop workingOut of the blue, intellisense stopped working even though I installed the twind and deno extensions How use namespace on Denoi am trying to use the same namespace in multiple modules but what used to work in node, doesn't worRestart Deno process on crashHello, The following Node snippet allows a script to restart on crash : ```js import { spawn } fbest practice when spawning commands that require sudo?I am building a command line utility in deno that leverages data coming from `tcpdump`. To get any m