radare2/doc/node.js
2015-03-31 01:33:40 +02:00
..
index.js Handle cmdline args in the nodejs script 2015-03-31 01:33:40 +02:00
Makefile Better r2-nodejs webserver, honor http.port, works from the shell too 2015-03-31 00:59:03 +02:00
package.json Add doc/node.js to run an express based r2 webserver 2x faster 2015-03-31 00:46:03 +02:00
README.md Bump capstone, sdb and add node readme 2015-03-31 01:31:35 +02:00

Node.JS express based webserver

Author : pancake pancake@nopcode.org

Date: 2015-03-31

Description

This is the nodejs implementation of a websever for radare2. This script can be executed from inside r2 by using the following commnad:

> #!pipe node .

If you don't have any other .js handler (like duktape) you can run it directly like this:

$ . index.js

From the shell you can run the script like this:

$ r2 -c '#!pipe node index.js' /bin/ls

Or just run it from nodejs:

$ node .

Or specify a different file to open

$ node . /bin/awk