GuillaumeGomez / minifier-rs

Minifier tool/lib for JS/CSS/JSON files
MIT License
86 stars 16 forks source link

Provide io::Write, io::Read, and Stream APIs #9

Open mmstick opened 7 years ago

mmstick commented 7 years ago

I would like to use this directly with files located on the disk. The setup in my web server is to grab a file, compress it, and store it in a concurrent hash map. I'd like to be able to add this in so that I could grab a file handle and pass it into this, then pass that into the compression algorithm. Perhaps even provide a return type that implements io::Read in itself.

I could look into implementing it myself if you want that.

GuillaumeGomez commented 7 years ago

It's absolutely not ready for use right now. I'll take your remark/issue into account but for now, please don't use this crate. I'll rewrite the HTML minifier soon (the JS one should be usable).