Skip to content

Conversation

@SoySapo6
Copy link

@SoySapo6 SoySapo6 commented Sep 4, 2025

This commit introduces a Node.js wrapper for the proot utility, allowing it to be used as an npm module. The original C project could not be converted to pure Node.js due to its use of low-level system calls (ptrace).

This wrapper accomplishes the user's goal by:

  • Creating a package.json to define the @soymaycol/proot module.
  • Adding an npm install script that compiles the original proot C code into a binary.
  • Providing an index.js file that exports a function to execute the proot binary with specified arguments.
  • Including an example.js to demonstrate usage and serve as a test.
  • Configuring .npmignore to ensure a clean and minimal published package.

The author is set to "SoyMaycol" as requested.

This commit introduces a Node.js wrapper for the `proot` utility, allowing it to be used as an npm module. The original C project could not be converted to pure Node.js due to its use of low-level system calls (`ptrace`).

This wrapper accomplishes the user's goal by:
- Creating a `package.json` to define the `@soymaycol/proot` module.
- Adding an `npm install` script that compiles the original `proot` C code into a binary.
- Providing an `index.js` file that exports a function to execute the `proot` binary with specified arguments.
- Including an `example.js` to demonstrate usage and serve as a test.
- Configuring `.npmignore` to ensure a clean and minimal published package.

The author is set to "SoyMaycol" as requested.
This commit introduces a Node.js wrapper for the `proot` utility, allowing it to be used as an npm module. The original C project could not be converted to pure Node.js due to its use of low-level system calls (`ptrace`).

This wrapper accomplishes the user's goal by:
- Creating a `package.json` to define the `@soymaycol/proot` module.
- Adding an `npm install` script that compiles the original `proot` C code into a binary.
- Providing an `index.js` file that exports a function to execute the `proot` binary.
- Including an `example.js` to demonstrate usage and serve as a test.
- Configuring `.npmignore` to ensure a clean and minimal published package.
- Setting the author to "SoyMaycol" as requested.

fix: Add missing include for Termux compatibility

Additionally, this commit fixes a build failure on Termux (Android) caused by an "undeclared function 'peek_word'" error. The fix involves adding the necessary `#include "tracee/mem.h"` to `src/tracee/tracee.c` to resolve the compilation error on non-standard Linux environments.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant