Skip to content

FabioMarciano/validocs

Repository files navigation

Validocs

Validocs library for document and pattern validation.

Collaborators

License

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

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)

Tests

Regular test

$ npm run test

Coverage

This command runs all tests and outputs a report1 about its coverage.

$ npm run test:coverage

1 The report outputs at coverage folder.


Watching files

$ npm run test:watch

ESLint

$ npm run lint

Build

This command builds the distribuition1.

$ npm run build

1 Outputs the dist folder

Usage

Go to validocs project wiki page to see how to use it.

About

Documents and patterns validator library.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published