5 ms·
It would be good to note that this implementation doesn't actually support de-compression (as is also noted in the to-do list). It is able to read headers and
by tdj 13y ago
It would be good to note that this implementation doesn't actually support de-compression (as is also noted in the to-do list).
It is able to read headers and other metadata, as well as unpack files, but only if they're stored without compression: https://github.com/43081j/rar.js/blob/master/dist/rar.js#L545 https://github.com/43081j/rar.js/blob/master/dist/rar.js#L54...
If I understand RAR, it actually uses a embedded virtual machine to specify the compression algorithm. That would have been the fun part.