@ldss95/helpers
TypeScript icon, indicating that this package has built-in type declarations

0.2.2 • Public • Published

Helpers

Este paquete incluye funciones para:

  • Validar cedula de identidad y electoral dominicana. Video
  • Agregar formato a cadenas de texto
  • Generar documentos PDF a partir de plantillas HTML

Ejemplos

import { duiIsValid, format, pdf } from 'ldss95@helpers'

if(duiIsValid('402256688353')){
    //Do something
}

const phone = format.phone('8094260093')
// (809) 426 - 0093

const code = format.custom('8078', 'XXXX - XXXX - XXXX - XXXX')

/@ldss95/helpers/

    Package Sidebar

    Install

    npm i @ldss95/helpers

    Weekly Downloads

    6

    Version

    0.2.2

    License

    MIT

    Unpacked Size

    19.7 kB

    Total Files

    5

    Last publish

    Collaborators

    • ldss95