ouch icon indicating copy to clipboard operation
ouch copied to clipboard

Support jsonlz4 as used in Firefox?

Open ur5us opened this issue 4 years ago • 1 comments

Firefox uses lz4 compression with an offset (header) for their jsonlz4 files. As that something that could be added to ouch? Or would a dedicated tool or a fork be a better place as it’s too niche?

ur5us avatar Nov 07 '21 20:11 ur5us

I don't think this would be possible just because our dependencies do not support this and we don't implement compression/decompression logic for formats (we just use the libraries), that's because it would require too much time and effort.

But even if you added this to an existing lz4 library, and ouch could use it, I'm not sure if it would work.

If the library would automatically detected it while decompressing, that's ok, but for compressing, we would need to add a new flag, right?

But I think this is too niche to add a new flag, also because we try to keep ouch with a small --help message, I find other tools to have too many options and this makes it harder to learn and use.

But maybe I understood it wrong and it does not require any additional flag?

marcospb19 avatar Nov 10 '21 12:11 marcospb19