js-cpf-validation Lib for CPF validation Javascript example: const cpf = require('js-cpf-validation'); console.log(cpf.isValidCPF("153.856.490-40")) Output: true Typescript example: import { isValidCPF } from 'js-cpf-validation' console.log(isValidCPF("153.856.490-40") Output: true