langchain.js
    Preparing search index...
    • Check if a URL is safe to connect to (non-throwing version).

      Parameters

      • url: string

        URL to check

      • Optionaloptions: { allowHttp?: boolean; allowPrivate?: boolean }
        • OptionalallowHttp?: boolean

          Allow http:// scheme (default: false)

        • OptionalallowPrivate?: boolean

          Allow private IPs (default: false)

      Returns boolean

      true if URL is safe, false otherwise