Utility to convert PS2 cheat codes. Uses ps2-codes as a backend.
The utility is available as an NPM package.
npm install -g ps2-codes-cli@latest
To convert a file, specify the input and output path and formats.
npx ps2-codes-cli raw SLUS-21361.txt pnach SLUS-21361.pnach
# The transformation was successful
# Format: pnach
# File length: 842
# Cheats count: 31
If you specify only the name of the input file, the utility will display the file information. This is useful if you do not know the code format.
npx ps2-codes-cli codes.txt
# Format: pnach
# File length: 346
# Cheats count: 3