Skip to content

daviian/ssn-aut-validator

Repository files navigation

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

  1. 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');
// => true

Tests

To test using a local installation of node.js:

npm test

About

Validate an Austrian Social Security Number (SSN)

Resources

License

Stars

Watchers

Forks

Packages

No packages published