# norwegian-ssn-validator

> Validates a Norwegian social security number. Does not support H-numbers, D-numbers or FH-numbers.

Latest version **1.2.0** (published 2021-07-19) · ISC license · 0 weekly downloads

## Install

```sh
npm install norwegian-ssn-validator
pnpm add norwegian-ssn-validator
yarn add norwegian-ssn-validator
bun add norwegian-ssn-validator
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.2.0 |
| Published | 2021-07-19 |
| First published | 2021-07-18 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 17.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Martin Severin Steffensen |
| Maintainers | maritim |
| Keywords | ssn, social security number |

## Links

- npm: https://www.npmjs.com/package/norwegian-ssn-validator
- Repository: https://github.com/maritims/norwegian-ssn-validator
- npm.io page: https://npm.io/package/norwegian-ssn-validator

## Alternatives

- [random-seedable](https://npm.io/package/random-seedable.md) — 27.9K weekly downloads
- [n2words](https://npm.io/package/n2words.md) — 22.2K weekly downloads
- [@stdlib/math-base-special-factorialln](https://npm.io/package/@stdlib/math-base-special-factorialln.md) — 5.7K weekly downloads
- [@stdlib/math-base-special-abs2](https://npm.io/package/@stdlib/math-base-special-abs2.md) — 1.7K weekly downloads
- [commons-math-interpolation](https://npm.io/package/commons-math-interpolation.md) — 1.4K weekly downloads

## Recent versions

- 1.2.0 (latest) — 2021-07-19
- 1.1.0 — 2021-07-19
- 1.0.9 — 2021-07-19
- 1.0.8 — 2021-07-19
- 1.0.7 — 2021-07-19
- 1.0.6 — 2021-07-19
- 1.0.5 — 2021-07-18
- 1.0.4 — 2021-07-18
- 1.0.3 — 2021-07-18
- 1.0.2 — 2021-07-18
- 1.0.1 — 2021-07-18
- 1.0.0 — 2021-07-18

## README

# norwegian-ssn-validator

> Component for validating Norwegian social security numbers.

## Getting started

### Installation

```shell
yarn add norwegian-ssn-validator
```

### Usage

```js
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}`)
}
```

## Versioning

Maintained under the [Semantic Verisoning Guidelines](https://semver.org).

## License
[ISC](https://opensource.org/licenses/ISC)

---
_Source: https://npm.io/package/norwegian-ssn-validator · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
