enquire-mcp API reference - v4.0.0-rc.7
    Preparing search index...

    Function parsePositiveInt

    • Parse a CLI-style positive integer without allowing IEEE-754 or native-width truncation.

      Parameters

      • raw: string

        Decimal spelling supplied by the caller.

      • flag: string

        Human-readable option name used in the error.

      • maximum: number = Number.MAX_SAFE_INTEGER

        Inclusive upper bound; defaults to JavaScript's safe-integer maximum.

      Returns number

      The admitted integer.

      If the spelling is not a positive safe integer within the bound.

      const ef = parsePositiveInt("100", "--hnsw-ef", 0xffff_ffff);