[quickjs-devel] Importing modules directly from HTTP(S) URLs

  • From: Saúl Ibarra Corretgé <s@xxxxxxxxxx>
  • To: quickjs-devel@xxxxxxxxxxxxx
  • Date: Thu, 29 Aug 2019 22:45:14 +0200

Hey there,

I thought I'd share something I cooked tonight: importing modules from
HTTP URLs directly using libcurl!

https://github.com/saghul/quv/blob/721c6f65065faf4c6cea9282d14a1a61af991573/src/quv/modules.c#L54

Files are not cached or anything, but it's a start :-)

That DynBuf came in very handy, gotta love not reinventing the wheel.


Cheers,

-- 
Saúl

Other related posts:

  • » [quickjs-devel] Importing modules directly from HTTP(S) URLs - Saúl Ibarra Corretgé