Header menu logo Fabulous.AST

HashUtils Module

Functions and values

Function or value Description

computeHash jsonContent configString

Full Usage: computeHash jsonContent configString

Parameters:
    jsonContent : string
    configString : string

Returns: string

Compute SHA256 hash of content + config

jsonContent : string
configString : string
Returns: string

generateHeader hash sourcePath sourceFullPath

Full Usage: generateHeader hash sourcePath sourceFullPath

Parameters:
    hash : string
    sourcePath : string
    sourceFullPath : string

Returns: string

Generate the header comment for output files Uses source file modification time for deterministic output

hash : string
sourcePath : string
sourceFullPath : string
Returns: string

needsRegeneration outputPath newHash

Full Usage: needsRegeneration outputPath newHash

Parameters:
    outputPath : string
    newHash : string

Returns: bool

Check if regeneration is needed based on hash in an existing file

outputPath : string
newHash : string
Returns: bool

Type something to start searching.