expandAtFile
@fleetforge/sdk / expandAtFile
Function: expandAtFile()
expandAtFile(
value,baseDir?):string
Defined in: sdk/typescript/src/util.ts:17
Expand an @file: value into file contents.
If value does not start with @file:, the original string is returned.
Parameters
value
string
Literal string or placeholder like @file:relative/or/abs.txt.
baseDir?
string
Optional base directory for resolving relative paths.
Returns
string
File contents as a UTF-8 string, or the original value if not prefixed.
Throws
When the resolved file cannot be read.