D
Deno

help

Is it possible to know what version of a dynamically-imported module was just imported?

Ttmcw3/14/2023
Right now, you can run code like import('npm:lodash'), which will get the latest version of lodash. Is it possible to know what version of lodash that resolved to, in the runtime or elsewhere? I suspect that it writes to an import map if there is one?
Jjoshcantcode3/14/2023
If you're on Windows you can go to %LOCALAPPDATA%\deno\npm\ I don't know if you'd be able to resolve during runtime

Looking for more? Join the community!