/rutificador

Get chilean RUT from people's name

Primary LanguageJavaScriptMIT LicenseMIT

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