Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 7 days ago
JSON representation
Validate Swedish personal identity numbers
- Host: GitHub
- URL: https://github.com/personnummer/js
- Owner: personnummer
- License: mit
- Created: 2014-12-02T14:36:34.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2024-04-12T11:21:18.000Z (9 months ago)
- Last Synced: 2024-04-14T14:49:28.241Z (9 months ago)
- Topics: hacktoberfest, javascript, personal-identity-number, personnummer, social-security-number, validation
- Language: TypeScript
- Homepage: https://www.npmjs.com/package/personnummer
- Size: 3.63 MB
- Stars: 51
- Watchers: 5
- Forks: 9
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-sweden - JavaScript
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