@gmb/bitmark-parser - v7.2.0
    Preparing search index...

    Function countBits

    • Count the bits in input, auto-detecting bitmark vs JSON (heuristic — a full input scan when the input is not bitmark; see convert).

      Parameters

      • input: string

      Returns number

      If the input cannot be parsed.