1.0.0 • Published 8 years ago
ssn-aut-validator v1.0.0
ssn-aut-validator
Validate an AUT Social Security Number (SSN)
Installation
npm install --save ssn-aut-validator
Usage
import SSNValidator from ssn-aut-validator;
SSNValidator.validate(value)
This method validates if the given value is a valid Austrian Social Security Number.
Arguments
value(string): The value to validate.
Returns
(boolean): Returns whether the input value is a valid SSN or not.
Example
SSNValidator.validate('');
// => false
SSNValidator.validate('12345678');
// => false
SSNValidator.validate('3968280689');
// => trueTests
To test using a local installation of node.js:
npm test1.0.0
8 years ago