judicial-info

1.0.2 • Public • Published

Antecedentes Judiciales Colombia

Módulo NPM para consultar su antecedente judicial (Colombia).

Web Policia Nacional : https://antecedentes.policia.gov.co:7005/WebJudicial/index.xhtml

Instalación

$ npm i judicial-info

Primera prueba

const { getJudicialInfo } = require('judicial-info');
 
getJudicialInfo('9173821')
  .then(res => console.log(res))
  .catch(err => console.log(err));
 
(async () => {
  try {
    const response = await getJudicialInfo('9173821');
    console.log(response);
  } catch (err) {
    console.log(err);
  }
})();
  Respuesta exitosa:
  {
    error: null,
    warn: null,
    user: {
      identification: '9173821',
      name: 'PIÑA ACOSTA RODOLFO RAFAEL',
      result: 'NO TIENE ASUNTOS PENDIENTES CON LAS AUTORIDADES JUDICIALES'
    }
  }
 
  Respuestas fallida (Seguir intentando)
  1Error
    {
      error: "Debe ingresar el texto de la imagen.. Intente nuevamente",
      warn: "null Intente nuevamente",
      user: null
    }
  2) Warn
    {
      error: "null Intente nuevamente",
      warn: "Captcha. El texto ingresado debe corresponder al de la imagen. Intente nuevamente",
      user: null
    }
 

Readme

Keywords

none

Package Sidebar

Install

npm i judicial-info

Weekly Downloads

1

Version

1.0.2

License

MIT

Unpacked Size

6.55 kB

Total Files

7

Last publish

Collaborators

  • jmbl1685