# ajv-swedish-ssn

> Ajv validation for Swedish SSN

Latest version **0.1.0** (published 2021-07-23) · MIT license · 0 weekly downloads

## Install

```sh
npm install ajv-swedish-ssn
pnpm add ajv-swedish-ssn
yarn add ajv-swedish-ssn
bun add ajv-swedish-ssn
```

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2021-07-23 |
| First published | 2021-07-23 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 1.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Yagiz Nizipli |
| Maintainers | anonrig |
| Keywords | ajv, swedish, ssn |

## Links

- npm: https://www.npmjs.com/package/ajv-swedish-ssn
- Homepage: https://github.com/anonrig/ajv-swedish-ssn
- Issues: https://github.com/anonrig/ajv-swedish-ssn/issues
- npm.io page: https://npm.io/package/ajv-swedish-ssn

## Recent versions

- 0.1.0 (latest) — 2021-07-23

## README

# ajv-swedish-ssn

Adds a `swedish-ssn` format to [Ajv](https://ajv.js.org).

## Install

```bash
npm i --save ajv-swedish-ssn
```

## Setup

```javascript
import Ajv from 'ajv'
import ssnValidator from 'ajv-swedish-ssn'
const ajv = new Ajv()
ssnValidator(ajv)
```

## Usage

When defining your JSON schema, use the `format` keyword with ther value set to `swedish-ssn`. For example

```json
{
  "type": "object",
  "properties": {
    "ssn": {
      "type": "string",
      "format": "swedish-ssn"
    }
  }
}
```

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