Filters a list of require paths down to a list of public and valid npm module names. The result will be sorted and de-duplicated.
var filter =var list ='object-assign''url''xtend''_invalid-module-name''this-module-does-not-exist''eases/linear.js''eases/quadratic-in-out.js''./foo-bar''../relative/module.js'
If errors were encountered searching the database, the search will continue but that entry will not be included in the resulting list.
filter(paths, [opt], callback)
Filters the list of require
paths with the optional settings and provides the resulting sorted list to
callback once all async operations are complete (i.e. searching database).
cache- an array of module names to assume exist already in the database
For example, you can use all-the-package-names to avoid queries for common packages.
var cache =
MIT, see LICENSE.md for details.