Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

r2papi

Package Overview
Dependencies
Maintainers
0
Versions
54
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

r2papi

r2api on top of r2pipe for typescript and js

  • 0.4.9
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
0
Created
Source

Typescript APIs for radare2

The r2papi module implements a set of idiomatic and high-level APIs that are based on top of the minimalistic r2pipe API.

The constructor of the R2Papi class takes an actual r2pipe instance, which only requires the .cmd() method to interface with radare2.

The whole r2papi module is documented and integrates well with any editor with LSP support (like Visual Studio Code or NeoVIM)

R2Papi relies on commands and functionalities that were implemented around r2-5.8.x, so take this into account and update your software!

Note that TypeScript usually transpiles to Javascript, and as long as r2 ships it's own javascript runtime (based on QuickJS, which is ES6) it is possible to run the resulting r2papi scripts without any extra dependency in your system.

But that does not mean that you need r2 to use r2papi, you can also use this module from NodeJS, Bun, Frida and even r2frida-compile!

Install the Radare2 Skeleton tool and check the project templates in the r2skel repository to start writing your scripts and plugins on top of this API.

$ r2pm -ci r2skel

Development

The source code is contained in the async/ directory. The code is then converted into sync using a sed oneliner.

  • Publishes r2papi (for sync api) and r2papi-async for the asynchronous
  • The whole sync api is autogenerated

--pancake

Keywords

FAQs

Package last updated on 20 Jun 2024

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