Module: Quality

Quality

Quality module is for filtering and ranking search results based on how much profile meta data they have available

Methods

innerfilterQuality(data, type, config){array}

Name Type Description
data array

account data objects to cast/scheme

type string

valid types are quality and domain

config array | string

when type is quality is array with values: ['name', 'bio', 'avatar', 'accounts'], else is string of domain extensions to filter for .id.blockstack/id.blockstack .id.onename

Returns:
Type Description
array returns array of account data objects filtered according to type and config params

innerrankQuality(data){array}

Name Type Description
data array

array of casted/schemed account data objects

Returns:
Type Description
array returns array of casted/schemed account data objects ranked for based on whether has most or least of these: avatar, name, bio