
Product
Introducing Repository Access Permissions and Custom Roles
Socket now supports Custom Roles and Repository Access Permissions so organizations can control who can access specific repositories and actions.
swe-validation
Advanced tools
Validation for Swedish Social Security number and Corporation identity number
Validation for Swedish Social Security number and Corporation identity number
Install with npm:
$ npm install swe-validation
##Examples
var validate = require('swe-validation');
validate.ssn('8112189876') // { isValid: true, person: { type: 'Personnummer', sex: 'Man', ssn: '8112189876' }
validate.ssn('8112189876') // { isValid: false }
validate.isSSn('8112189876') //8112189876
validate.isSSn('8112189877') //null
validate.cin('5560360793') // { isValid: true, corporation: { type: 'Aktiebolag', id: '5560360793' } }
validate.cin('8112189877') // { isValid: false }
validate.isCin('5560360793') //5560360793
validate.isCin('8112189877') //null
FAQs
Validation for Swedish Social Security number and Corporation identity number
The npm package swe-validation receives a total of 689 weekly downloads. As such, swe-validation popularity was classified as not popular.
We found that swe-validation demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.

Product
Socket now supports Custom Roles and Repository Access Permissions so organizations can control who can access specific repositories and actions.

Product
Socket MCP now lets AI assistants review org alerts, investigate threats using the Socket threat feed, and inspect package files in addition to dependency scoring.

Product
Socket Firewall blocks malicious VS Code and Open VSX extensions before install, protecting developers from compromised editor marketplaces.