Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
@adia-technology/international-ssn-validator
Advanced tools
A utility to validate social security number of different countries.
This utility checks validity of Social Security Numbers. Currently supported countries are USA and Switzerland.
npm install @adia-technology/international-ssn-validator --save
import { validateSsn, ValidationResult } from '@adia-technology/international-ssn-validator';
let validationResult = validateSsn('756.1111.2222.00', 'ch');
let isValid = validationResult === ValidationResult.Valid;
This library exposes a single function, validateSsn
, that accepts two parameters:
ssn : string
- SSN to validate.countryCode : string
- country for which to check the SSN against. Currently supported are us
and ch
.It returns a ValidationResult
, which essentially is a string enum being set to one of the values: 'VALID'
, 'INVALID_FORMAT'
or 'INVALID_CHECKSUM'
.
This library uses the following other libraries:
0.3.1
FAQs
A utility to validate social security number of different countries.
The npm package @adia-technology/international-ssn-validator receives a total of 8 weekly downloads. As such, @adia-technology/international-ssn-validator popularity was classified as not popular.
We found that @adia-technology/international-ssn-validator demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.