package
splat (the N64/PS1 decomp binary splitter) ported to plain JavaScript ESM, for romdev. Output is byte-identical to Python splat 0.37.1 / 0.34.1.
npm install romdev-splatGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Estimated unpacked size across 4 packages.
1.9 MB
Includes dependencies.
3 direct · 1 outdated
A plain JavaScript (ESM) port of splat, the binary splitting tool N64 and PS1 decompilation projects use to cut a ROM or executable into assembly, data, asset and linker-script files from a YAML config. For the same inputs its output (assembly, linker scripts, dependency files, undefined-symbol files, binary and image assets, C stubs, symbol dumps) is byte-identical to Python splat's. No Python is needed.
It is part of romdev.
v0.37.1), with the behaviour of splat64
0.34.1 reproduced behind a version option.src/wasm/zlib-stream.wasm is zlib 1.3.1 (zlib license)
with a small stream API.src/ext/ holds JS translations of splat extension segtypes that specific
decomp projects ship, each identified by the sha256 of its Python source.LICENSE and NOTICE.romdevtools' decomp tool runs it when a project's own setup recipe calls
splat split (decomp({op:'setup'}), decomp({op:'import'})). The splat and
spimdisasm versions are read from what the project pins (uv.lock,
requirements files or a vendored copy).
npx romdev-splat split config/game.yaml --modes allThe bin is romdev-splat. It mirrors splat split: CONFIG..., --modes,
--verbose, --use-cache, --skip-version-check, --stdout-only,
--disassemble-all, --make-full-disasm-for-code, plus
--splat-version V|auto, --spimdisasm-version V|auto, --cwd DIR and
--base-path DIR. Only the split command is ported.
import { split } from "romdev-splat";
const r = await split(["config/game.yaml"], { cwd: "/path/to/project" });
// { exitCode, stdout, stderr, error, splatVersion, spimdisasmVersion, extensions }split(configPaths, options) never reads or changes process.cwd(): relative
paths resolve against options.cwd. Options include modes, splatVersion
('0.37.1' default, '0.34.1' or 'auto'), spimdisasmVersion, basePath,
backend (a { spimdisasm, rabbitizer } pair to use instead of the
dependencies) and onOutput. Calls are queued, so concurrent splits run one at
a time. Also exported: detectProjectVersions, SUPPORTED_SPLAT_VERSIONS,
DEFAULT_SPLAT_VERSION, PORTED_EXTENSIONS, SplatError. Exports: . only.
Node >= 24, ESM only. Depends on
romdev-spimdisasm,
romdev-rabbitizer and
yaml. No Python, no native code.
romdev-splat 0.1.0 ports splat64 0.37.1 (and reproduces 0.34.1).