distil-wasm
This is a WebAssembly port of Elliot Jackson's Distil app (original repo: https://github.com/elliotekj/distil
Usage
npm init wasm-appcd wasm-appnpm i distilnpm start
In the generated index.js
we can add the following lines of code to get a result:
; const renderColors = async { const response = await ; const blob = await response; const result = await { const reader = ; reader { if readerresult instanceof ArrayBuffer return ; else return ; }; readeronerror = reject; reader; }; const colors = ; const container = documentbody; containerinnerHTML = ''; console; colors;}; windowdistil = renderColors;
and for an example like this;
you can run the code below into the browser's console:
;
you should get the following output: