#How to import npm module from github?
20 messages · Page 1 of 1 (latest)
I want to use a npm module which is not on npm (https://github.com/ZJONSSON/node-unzipper/blob/341f258 )
I tried ts // @deno-types="npm:@types/unzipper@0.10" export { Extract } from "https://github.com/ZJONSSON/node-unzipper/raw/341f258/lib/extract.js"; , but it did not work: ```
error: Uncaught SyntaxError: The requested module 'https://github.com/ZJONSSON/node-unzipper/raw/341f258/lib/extract.js' does not provide an export named 'Extract'
export { Extract } from "https://github.com/ZJONSSON/node-unzipper/raw/341f258/lib/extract.js";
^
at <anonymous> (file:///E:/voicevox-project/vvproxy/deps.ts:3:10)
I guess that I need to make deno recognize it's a npm module, but i don't know how to.
yes, but I want to use unreleased version
Hm. Not sure if this is possible with the current setup, definitely interesting. What is your usecase? Would https://deno.land/x/zip not work for what you're trying to do?
It didn't.
What are you trying to do?
Unzipping
this package didn't work
.zip is not just one standard. Where are these zips coming from? A lot of "streamable unzip" libraries cannot work the way they are advertised because some zip formats are not streamably unzippable.
Is there a reason you need the unreleased version? Does importing the one on npm work right now?
Yes, npm latest doesn't support zip64, but unreleased one does
Have you tried https://deno.land/x/zipjs ?