r2pipe-asmjs

1.2.0 • Public • Published

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

Package Sidebar

Install

npm i r2pipe-asmjs

Weekly Downloads

1

Version

1.2.0

License

MIT

Last publish

Collaborators

  • pancake