The MIT license is a permissive license compatible with Apache 2.0 (see the Collect contribution guide) so yes, we could use that library with proper attribution.
@aurdipas would you like to quickly bring this up at the TSC meeting to discuss putting it on the roadmap for the next Collect release? I don't think it needs to be a big discussion since it looks straightforward as long as you can help validate it but would be good to follow the process.