New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

r2core

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

r2core

emscripten build of radare2 with an r2pipe api

  • 1.2.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
decreased by-50%
Maintainers
1
Weekly downloads
 
Created
Source

r2core.js

This is the NodeJS module and Browser ready emscripten builds of radare2.

const r2core = require('r2core');
const c = new r2core();
console.log(c.cmd('?E Hello World'));

You can create multiple instances of RCore and you can open external resources too:

c.open('/bin/ls');

Building

Build radare2.js with radare2-release

r2pm -r r2rls docker_asmjs

Now you may run make to minify the radare2.js and generating r2core.js. This process is using uglifyjs and closurejs

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 test.js

Future

  • Integration with brotli (Compression goes from 16MB to 1.8MB)
  • Open Buffers instead of fs/network resources

Author

  • pancake pancake@nopcode.org

Keywords

FAQs

Package last updated on 30 Jan 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc