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: about 2 months 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 (over 10 years ago)
- Default Branch: master
- Last Pushed: 2024-04-12T11:21:18.000Z (about 1 year ago)
- Last Synced: 2024-04-14T14:49:28.241Z (about 1 year 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 [](https://github.com/personnummer/js/actions) [](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