Pre-compiled binaries and Node.js wrapper for unknownbrackets' maxcso tool.
OS | Architectures | Additional Instructions |
---|---|---|
Windows |
|
|
macOS |
|
lz4, libuv, and libdeflate are required to be installed separately:brew install lz4 libuv libdeflate |
Linux |
|
You can easily run the maxcso
binary for your OS from the command line like this:
npx maxcso [options..]
Examples:
npx maxcso --crc Disc.cso
npx maxcso --decompress Disc.cso -o Disc.iso
npx maxcso --format=cso1 Disc.iso -o Disc.cso
npm install --save maxcso
import maxcso from 'maxcso';
/**
* Compress an ISO.
*/
await maxcso.compress({
inputFilename: 'Disc.iso',
outputFilename: 'Disc.cso',
});
/**
* Given a compressed file, get the decompressed file's CRC32.
*/
const crc32 = await maxcso.uncompressedCrc32('Disc.cso');
console.log(crc32);
// "abcd01234"
/**
* Decompress a CSO.
*/
await maxcso.decompress({
inputFilename: 'Disc.cso',
outputFilename: 'Disc.iso',
});
unknownbrackets' maxcso tool is licensed under the ISC license.