Deployed online at https://vadimkantorov.github.io/wasm-iconv/
iconv
program (from GNU libiconv) compiled to WebAssembly using Emscripten and embedded in a single-file HTML.
iconv.html
standalone file is also published in Releases, i.e. you can download https://github.com/vadimkantorov/wasm-iconv/releases/download/release/iconv.html and just click/open it in your local web browser from the local file system.
This repo can also serve as a primer of converting a UNIX utility program to a self-contained webpage.
# assumes installed Emscripten's emcc/emmake
# download and extract GNU libiconv sources
which curl && make libiconv
# build and produce ./iconv.html
which emcc && test -d libiconv && make iconv.html
# deploy ./iconv.html to GitHub Pages by creating and pushing into `gh-pages` branch
which git && test -f iconv.html && make deploy
MIT