Skip to content
This repository has been archived by the owner on Jan 11, 2023. It is now read-only.

lopezjurip/rutificador

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rutificador Build Status

Get chilean RUT from people's name or vice versa from Rutify – Rutificador.

Install

npm install --save rutificador

Usage

// Packages
const rutify = require('rutificador')

// Search by name
rutify({ name: 'Juán Perez' }).then(juanitos => {
  console.log(juanitos)
})

// Search by RUT
rutify({ rut: 'xxxxxxxxx' }).then(results => {
  console.log(results)
})

API

rutify(opts : Object) => Promise
  • opts
    • rut: The chilean RUT (DNI), example 189726317 or 18.972.631-7.
    • name: The name you want to search.

Related

  • rut.js - Sencilla y pequeña librería para validar y dar formato al RUT
  • rut-regex - Regular expression for matching Chile RUT's