developersdo / sdq

📦 Utility functions to validate cédula and RNC!
MIT License
21 stars 12 forks source link
cedula-dominicana dominican dominican-republic rnc

sdq – Utility functions to validate cédula and RNC!

Features

Installation

yarn add sdq

or

npm install sdq --save

Usage

import sdq from 'sdq'

sdq.isCedula('xxx-yyyyyyy-z')  // Returns true/false.
sdq.isRnc('aaa-bbbbb-c')       // Returns true/false.

Development

  1. Clone and fork this repo.
  2. Install dependencies: yarn or npm install.
  3. Run tests.
  4. Prepare a pull request.

Test

Publish

  1. Bump package version: yarn version --new-version x.x.x -m 'Version %s.'.
  2. Publish to NPM registry: npm publish.
  3. Push new tag: git push origin --tags.

Made with :heart: by [all contributors](https://github.com/rmariuzzo/react-input-handler/graphs/contributors). [MIT license](LICENSE)