MCPcopy
hub / github.com/BrasilAPI/cep-promise / getAvailableServices

Function getAvailableServices

src/services/index.js:7–25  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5import BrasilAPI from './brasilapi.js'
6
7export function getAvailableServices () {
8 const isBrowser = typeof window !== 'undefined'
9
10 if (isBrowser) {
11 return {
12 viacep: ViaCep,
13 widenet: WideNet,
14 brasilapi: BrasilAPI
15 }
16 }
17
18 return {
19 correios: Correios,
20 'correios-alt': CorreiosAlt,
21 viacep: ViaCep,
22 widenet: WideNet,
23 brasilapi: BrasilAPI
24 }
25}

Callers 3

validateProvidersFunction · 0.90
fetchCepFromServicesFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected