Skip to content

Instantly share code, notes, and snippets.

@sergio-toro
sergio-toro / validate-spanish-id.js
Last active January 16, 2023 16:12 — forked from afgomez/validate_spanish_id.js
AngularJS service to validate spanish document id DNI / NIE / NIF
/**
* AngularJS service to validate spanish document id.
* Returns the type of document and checks its validity.
*
* Usage:
* angular
* .module('myApp', [ 'validate-spanish-id' ])
* .controller('myController', function(ValidateSpanishID){
* ValidateSpanishID.validate( str );
* })

Keybase proof

I hereby claim:

  • I am sergio-toro on github.
  • I am storo (https://keybase.io/storo) on keybase.
  • I have a public key whose fingerprint is 18B4 7D17 6351 A020 193C 8B44 12A7 EE7E D5B3 41E3

To claim this, I am signing this object: