Helper functions for formating.
- Source:
Methods
-
<static> getLicenseList(data) → {Array}
-
Return list of license types extracted from specified data. License types extracted from
license
orlicenses
field.Parameters:
Name Type Description data
Object Data that should be processed. - Source:
Returns:
List of found license types.- Type
- Array
-
<static> getRepository(data) → {String}
-
Return repository URL extracted from specified data. URL extracted from
repository
field.Parameters:
Name Type Description data
Object Data that should be processed. - Source:
Returns:
Found repository URL or empty string.- Type
- String