I don't know what pipreqs is, but if I understand the question, I'd start here.
There are a number of old tools on the File Exchange, but the ones I recall are all unmaintained and/or broken.
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!