Module: format/util

Helper functions for formating.

Methods


<static> getLicenseList(data)

Return list of license types extracted from specified data. License types extracted from license or licenses field.
Parameters:
Name Type Description
data Object Data that should be processed.
Returns:
List of found license types.
Type
Array

<static> getRepository(data)

Return repository URL extracted from specified data. URL extracted from repository field.
Parameters:
Name Type Description
data Object Data that should be processed.
Returns:
Found repository URL or empty string.
Type
String