validocs
TypeScript icon, indicating that this package has built-in type declarations

1.1.0 • Public • Published

Validocs

Validocs library for document and pattern validation.

Features

The current list of documents and patterns implemented on this project are:

  • CPF
    Cadastro Pessoas Físicas (brazilian federal document required for natural persons)
  • CNPJ
    Cadastro Nacional de Pessoas Jurídicas (brazilian federal document required for legal persons)
  • PIS
    Programa de Integração Social (brazilian federal document required for natural persons)

Collaborators

License

This project is licensed under the terms of the MIT license.

Quickstart

Install

$ npm install validocs --save

Usage

Typescript example:

Import and use a module:

import CPF from 'validocs/cpf';

const cpf: CPF.Cpf = CPF.make();

console.log(`Generated CPF number: ${cpf}`);

Documentation

The projects wiki is available at github.

Package Sidebar

Install

npm i validocs

Weekly Downloads

0

Version

1.1.0

License

MIT

Unpacked Size

32.6 kB

Total Files

17

Last publish

Collaborators

  • fabio.marciano