Skip to content

Latest commit

 

History

History
39 lines (26 loc) · 687 Bytes

README.md

File metadata and controls

39 lines (26 loc) · 687 Bytes

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