How to use the cep-promise/dist/cep-promise.min function in cep-promise

To help you get started, we’ve selected a few cep-promise examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github pagarme / artis / src / utils / helpers / getAddress.js View on Github external
const getAddress = zipcode =>
  cep(zipcode)
    .catch(() => ({
      message: 'CEP não encontrado. Preencha seu endereço abaixo.',
    }))

cep-promise

Busca por CEP integrado diretamente aos serviços dos Correios e ViaCEP

MIT
Latest version published 2 months ago

Package Health Score

84 / 100
Full package analysis

Popular cep-promise functions