MCPcopy Create free account
hub / github.com/BrasilAPI/BrasilAPI / getRegistroBrAvail

Function getRegistroBrAvail

services/registro.js:9–17  ·  view source on GitHub ↗
(domain)

Source from the content-addressed store, hash-verified

7 * @author Guilherme Neves <guilhermeasn@yahoo.com.br>
8 */
9export default function getRegistroBrAvail(domain) {
10 if (
11 typeof domain !== 'string' ||
12 !domain.length ||
13 /[^A-Za-z0-9àáâãéêíóôõúüç.-]/.test(domain)
14 )
15 throw new Error('O domínio não foi informado corretamente!');
16 return axios.get(`https://registro.br/v2/ajax/avail/raw/${domain}`);
17}

Callers 1

dataFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected