HyperDrive Archive from webassembly.org
$ npm install @hyperdrives/webassembly.orgor (Github):
$ npm install hyperdrives/webassembly.orgYou can read the archive directly by simply requiring and initializing the hyperdrive with the correct public key.
conststorage=require.resolve('@hyperdrives/webassembly.org')constwebassembly=require('hyperdrive')(storage,key,opts)or using a convenient wrapper:
constwebassembly=require('@hyperdrives/webassembly.org')(key,opts)You can also leverage random-access-http to read the archive from the public Github repository.
'use strict'consthyperdrive=require('hyperdrive')consthttp=require('random-access-http')constprefix='https://github.com/hyperdrives/webassembly.org/raw/master/'constkey='082dc40709a26a382194c14db1e1cee90156d4671300b19282df1cb9bcf1d24c'constdrive=hyperdrive((filename)=>http(prefix+filename),key)webassembly.readdir('/',console.log)The webassembly archive represents an offline archive of http://webassembly.org/
082dc40709a26a382194c14db1e1cee90156d4671300b19282df1cb9bcf1d24c