-
-
Notifications
You must be signed in to change notification settings - Fork 99
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Skeleton for the ts rewrite of r2pipe.js
- Loading branch information
Showing
7 changed files
with
95 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
all: | ||
tsc -d index.ts | ||
tsc | ||
make -C examples/hello |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
all: | ||
rm -f r2pipe | ||
ln -fs ../.. r2pipe | ||
r2frida-compile -So index.r2.js index.ts | ||
r2 -qi index.r2.js - | ||
tsc index.ts | ||
r2 -qi index.js - |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
import * as r2pipe from "@r2pipe"; | ||
|
||
const r2 = r2pipe.open(); | ||
console.log(r2.cmd("?e hello")); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"name": "r2pipe-example-hello", | ||
"version": "0.0.1", | ||
"description": "example using the new r2pipe", | ||
"type": "module", | ||
"main": "./index.js", | ||
"types": "./index.d.js", | ||
"license": "LGPL-3.0", | ||
"module": "es2020", | ||
"engines": { | ||
"node": ">=14.16" | ||
}, | ||
"devDependencies": { | ||
"@frida/events": "^4.0.4", | ||
"@types/frida-gum": "^18.3.1", | ||
"@types/node": "^18.0.0", | ||
"@typescript-eslint/eslint-plugin": "^5.51.0", | ||
"@typescript-eslint/parser": "^5.51.0", | ||
"eslint": "^8.34.0", | ||
"frida-compile": "^16.1.5", | ||
"typescript": "^5.0.0" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"compilerOptions": { | ||
"baseUrl": ".", | ||
"target": "es6", | ||
"module": "esnext", | ||
"lib": ["es6"], | ||
"declaration": true, | ||
"esModuleInterop": true, | ||
"moduleResolution": "nodenext", | ||
"strict": true, | ||
"skipLibCheck": true, | ||
"outDir": "./dist", | ||
"paths": { | ||
"@r2pipe": ["./r2pipe/index.js"] | ||
} | ||
}, | ||
"include": [ | ||
"index.ts" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{ | ||
"name": "r2pipe-example-hello", | ||
"version": "0.0.6", | ||
"description": "example using the new r2pipe", | ||
"type": "module", | ||
"main": "./index.js", | ||
"types": "./index.d.js", | ||
"license": "LGPL-3.0", | ||
"engines": { | ||
"node": ">=14.16" | ||
}, | ||
"devDependencies": { | ||
"@frida/events": "^4.0.4", | ||
"@types/frida-gum": "^18.3.1", | ||
"@types/node": "^18.0.0", | ||
"@typescript-eslint/eslint-plugin": "^5.51.0", | ||
"@typescript-eslint/parser": "^5.51.0", | ||
"eslint": "^8.34.0", | ||
"frida-compile": "^16.1.5", | ||
"typescript": "^5.0.0" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"compilerOptions": { | ||
"baseUrl": ".", | ||
"moduleResolution": "node", | ||
"target": "es2020", | ||
"lib": ["es2020"], | ||
"declaration": true, | ||
"strict": true, | ||
"skipLibCheck": true, | ||
"outDir": "./dist" | ||
}, | ||
"include": [ | ||
"index.ts" | ||
] | ||
} |