Utility functions to validate cédula and RNC!
npm install sdq📦 Utility functions to validate cédula and RNC!
- Validate Cédula de Identidad Electoral.
- Validate RNC (Registro Nacional del Contribuyente).
- Only 1.98KB (1.03 gzipped)!
``shell`
yarn add sdq
or
`shell`
npm install sdq --save
`js
import sdq from 'sdq'
sdq.isCedula('xxx-yyyyyyy-z') // Returns true/false.
sdq.isRnc('aaa-bbbbb-c') // Returns true/false.
`
1. Clone and fork this repo.
2. Install dependencies: yarn or npm install.
3. Run tests.
4. Prepare a pull request.
- yarn test — to run all tests.yarn test -- --watch
- — to run all tests in watch mode.
1. Bump package version: yarn version --new-version x.x.x -m 'Version %s.'.npm publish
2. Publish to NPM registry: .git push origin --tags`.
3. Push new tag:
---
Made with :heart: by all contributors.