Skip to content

Dynamicaaa/unrpyc-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

UnrpycJS

A modern JavaScript wrapper around the unrpyc Python tool, powered by @dynamicaaa/pyrunner. It is published as part of the RPX toolkit but can also be used independently if you need .rpyc decompilation in your own workflows.

Installation

npm install @dynamicaaa/unrpyc-js

The module downloads a portable Python runtime on first use (cached under ~/.pyrunner).

Usage

import UnrpycJS from '@dynamicaaa/unrpyc-js'; const unrpyc = new UnrpycJS({ debug: false }); await unrpyc.init(); // Decompile a single file const result = await unrpyc.decompileFile('game/script.rpyc', { overwrite: true, outputDir: 'build/decompiled' }); console.log(result);

API

  • new UnrpycJS(options) – initialise the wrapper. Options mirror the CLI flags exposed by RPX.
  • init() – prepare the Python runner and install unrpyc if missing.
  • decompileFile(inputPath, options) – decompile a single .rpyc or .rpymc file.
  • decompileDirectory(inputDir, options) – batch decompile directories.
  • isValidRpycFile(filePath) – test if a file looks like a valid Ren''Py compiled script.
  • getVersion() – return the underlying unrpyc version string.

Refer to the inline JSDoc inside index.js for full option details.

License

MIT © Dynamicaaa

About

A modern JavaScript wrapper around the "unrpyc" Python tool.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published