Skip to content

Graphorin API reference v0.1.0


Graphorin API reference / @graphorin/provider / / classifyLocalProvider

Function: classifyLocalProvider()

ts
function classifyLocalProvider(baseUrl): LocalProviderClassification;

Defined in: packages/provider/src/trust/classify-local-provider.ts:63

Classify a URL string into one of the four LocalProviderTrust tiers. Throws TypeError if the URL is unparseable so adapters fail fast at construction time (programming error; not a runtime fault).

Parameters

ParameterType
baseUrlstring

Returns

LocalProviderClassification

Stable