https://skimdb.npmjs.com/registry/_design/scratch/_view/byFi...
looks like there is an api
Re:Malicious crossenv package on npm
by thangngoc89 on Wednesday August 02, 2017 @05:07AM
(#14909044)
npm maintains a mirror of CouchDB here https://skimdb.npmjs.com. You can use any tools that understand CouchDB to get all of those information
It'd be interesting to write a tool that monitors as packages are added to npm, compare them against the existing list, and check for potential typo-squatting. Like, remove dashes, check Levenshtein distance, etc.
I mean, NPM themselves should be doing that but ... since they aren't, might as well do it for them, ya?