antoniomuso / lz4-napi

Fastest lz4 compression library in Node.js, powered by napi-rs and lz4-flex.
MIT License
55 stars 2 forks source link

Usage with Node.js streams #429

Open slvrtrn opened 1 year ago

slvrtrn commented 1 year ago

I see that https://github.com/antoniomuso/lz4-napi/issues/106 is closed as completed; however, the API does not expose any Transform or other stream helpers.

Do you have lz4-napi with Node.js stream usage examples?

Cheers.

antoniomuso commented 1 year ago

Hi slvrtrn, currently, there isn't streams support; I don't remember why I closed the issue, I think by mistake.

This is a good feature.

slvrtrn commented 1 year ago

Thanks for the response @antoniomuso We'd be happy to use lz4-napi (and LZ4 compression in general) in our Node.js client https://github.com/ClickHouse/clickhouse-js, but we are blocked by a lack of streaming support

antoniomuso commented 1 year ago

I am sorry for it; I don't know when I will integrate this feature, and I don't have time to do it at the moment.

antoniomuso commented 1 year ago

But your contribution is welcome if you want to implement it by yourself.

antoniomuso commented 3 weeks ago

Currently, it cannot be implemented due to the lack of the Stream in napi-rs. We should wait: https://github.com/napi-rs/napi-rs/issues/1493