function filter( names, dir ) {
	names = resolve( names, dir );
	return metafilter( names );
}
Synchronously filters a list of package names for packages which are compatible with browser environments.

@private
@param {StringArray} names - package names
@param {string} dir - base directory from which to resolve packages
@returns {(StringArray|EmptyArray)} filtered list of package names