# is-personnummer

> Validate Swedish social security numbers

Latest version **1.1.3** (published 2017-10-18) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install is-personnummer
pnpm add is-personnummer
yarn add is-personnummer
bun add is-personnummer
```

Provides the command `is-personnummer`.

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 1.1.3 |
| Published | 2017-10-18 |
| First published | 2014-12-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 0.8.0 |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 58 |
| Author | Fredrik Forsmo |
| Maintainers | frozzare |
| Keywords | personnummer, personal, identity |

## Links

- npm: https://www.npmjs.com/package/is-personnummer
- Repository: https://github.com/personnummer/js
- Issues: https://github.com/personnummer/js/issues
- npm.io page: https://npm.io/package/is-personnummer

## Dependencies (1)

- [meow](https://npm.io/package/meow.md) ^3.7.0

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 1.1.3 (latest) — 2017-10-18
- 1.1.2 — 2017-06-01
- 1.1.1 — 2015-08-10
- 1.0.4 — 2014-12-03
- 1.0.3 — 2014-12-03
- 1.0.2 — 2014-12-02
- 1.0.1 — 2014-12-02

## README

# is-personnummer [![Build Status](https://secure.travis-ci.org/personnummer/js.png?branch=master)](http://travis-ci.org/personnummer/js)

Validate Swedish social security numbers.

Install the module with npm:

```
$ npm install is-personnummer
```

or with Bower, with AMD and browser support:

```
$ bower install is-personnummer
```

or as cli:

```
$ npm install -g is-personnummer
$ is-personnummer 510818-9167
$ true
```

## Example

```javascript
$ node
> var isPersonnummer = require('is-personnummer');
undefined
> isPersonnummer('510818-9167');
true
> isPersonnummer('19130401+2931')
true
> isPersonnummer('196408233234')
true
> isPersonnummer('510818-916')
false
> isPersonnummer('19130401+293')
false
> isPersonnummer('19640823323')
false
```

See [test.js](test.js) for more examples.

## License

MIT

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