@avanio/variable-util
    Preparing search index...

    Function booleanParser

    • Build parser and have optional post validation (as example for literal values)

      supports the following string true values:

      ['true', '1', 'yes', 'y', 'on']

      supports the following string false values:

      ['false', '0', 'no', 'n', 'off']

      Type Parameters

      • Output extends boolean = boolean

        Type of output, defaults to number

      Parameters

      Returns IConfigParser<boolean, Output>

      • parser

      v1.0.0