r2pipe-asmjs
v1.2.0
Published
emscripten build of radare2 with an r2pipe api
Downloads
8
Readme
r2pipe.asmjs
Build radare2.tiny.js with radare2-release
r2pm -r r2rls docker_asmjs
Notice that compilation line at the end of the build:
$ make EMSCRIPTEN=1 COMPILER=emscripten ANDROID=1
emcc -pie -s EXPORTED_FUNCTIONS='["_r2_asmjs_cmd","_r2_asmjs_openurl"]' -MD
...
Then uglify it
npm install uglify-js
node --max-old-space-size=4096 $(npm bin)/uglifyjs < radare2.js > radare2.tiny.js
or
npm -g install closurecompiler
ccjs radare2.js > radare2.tiny.js
or get it from:
http://cloud.rada.re/asmjs/radare2.tiny.js
You can now use this file from nodejs or the browser
open webtest.html
node nodetest.js