Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/personnummer/js

Validate Swedish personal identity numbers
https://github.com/personnummer/js

hacktoberfest javascript personal-identity-number personnummer social-security-number validation

Last synced: 2 months ago
JSON representation

Validate Swedish personal identity numbers

Awesome Lists containing this project

README

        

# personnummer [![Build Status](https://img.shields.io/github/actions/workflow/status/personnummer/js/nodejs.yml?branch=master)](https://github.com/personnummer/js/actions) [![NPM Downloads](https://img.shields.io/npm/dm/personnummer.svg)](https://www.npmjs.com/package/personnummer)

Validate Swedish personal identity numbers.

Install the module with npm:

```
npm install --save personnummer
```

## Example

```javascript
import Personnummer from 'personnummer';

Personnummer.valid('191212121212')
//=> true
```

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

## License

MIT