idirouhab / dni-js-validator

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DNI/NIF Validator

Build Status codecov npm version Known Vulnerabilities

It's a very small package that sets out to validate Spanish DNI and NIE. It contains simple functions where the string will be validated against the formula to check whether is valid or not.

Usage

$ npm install dni-js-validator --save 
var dni = require("dni-js-validator")

dni.isValid('12345678Z') // => 'true'

About


Languages

Language:JavaScript 100.0%