
Product
Socket MCP Adds Org Alerts, Threat Feed Review, and Package Inspection
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.
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.isSSn('8112189876') //8112189876
validate.isSSn('19811218-9876') //8112189876
validate.isSSn('8112189877') //null
validate.isCin('5560360793') //5560360793
validate.isCin('8112189877') //null
validate.ssn('8112189876') //{ isValid: true, person: { type: 'Personnummer', sex: 'Man', ssn: '8112189876' }
validate.ssn('8112189877') //{ isValid: false }
validate.cin('5560360793') //{ isValid: true, corporation: { type: 'Aktiebolag', id: '5560360793' } }
validate.cin('8112189877') //{ isValid: false }
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 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.

Research
More than 140 Mastra npm packages were compromised in a supply chain attack that used a typosquatted dependency to deliver a cross-platform infostealer during installation.