@elizaos/core v0.1.7 / parseBooleanFromText
parseBooleanFromText(
text
):boolean
Parses a string to determine its boolean equivalent.
Recognized affirmative values: "YES", "Y", "TRUE", "T", "1", "ON", "ENABLE". Recognized negative values: "NO", "N", "FALSE", "F", "0", "OFF", "DISABLE".
• text: string
The input text to parse.
boolean
- Returns
true
for affirmative inputs,false
for negative inputs, andnull
for unrecognized inputs or null/undefined.