Utilities Service
The Utilities
service offers miscellaneous operations.
Available Operations
getHash
Utilities.getHash(key: string): string
Calculates a 16-byte hash of the input and returns it. Rules in modules should use this function to find unique locations for output artifacts in the build directory without duplicating the whole directory structure of the respective input file (to deal with the case of two files with the same name in different subdirectories of the same product).
rfc1034Identifier
Utilities.rfc1034Identifier(str: string): string
Returns an RFC 1034 compliant identifier based on the given string by replacing each character that is not Latin alphanumeric or .
with -
.