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

Latest commit

 

History

History
41 lines (29 loc) · 954 Bytes

README.md

File metadata and controls

41 lines (29 loc) · 954 Bytes

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