Component for validating Norwegian social security numbers.
yarn add norwegian-ssn-validator
import { validateSsn } from 'norwegian-ssn-validator'
const ssn = '01015111111'
const validationResult = validateSsn(ssn)
if(validationResult.isSuccess()) {
console.log('SSN is valid')
} else {
console.log(`SSN is invalid: ${validationResult.errorCode}`)
}
Maintained under the Semantic Verisoning Guidelines.