Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/svenheden/swedish-personal-identity-number-validator
https://github.com/svenheden/swedish-personal-identity-number-validator
Last synced: 28 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/svenheden/swedish-personal-identity-number-validator
- Owner: svenheden
- License: mit
- Created: 2017-07-14T06:47:26.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2022-04-11T08:25:35.000Z (over 2 years ago)
- Last Synced: 2024-11-09T10:10:01.898Z (about 1 month ago)
- Language: JavaScript
- Size: 30.3 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-sweden - JavaScript
README
# Swedish personal identity number validator
Validates Swedish personal identity numbers
![Tests][tests-badge]
[![NPM version][npm-image]][npm-url]## Install
```
$ npm install --save swedish-personal-identity-number-validator
```## Usage
```js
import { isValid } from "swedish-personal-identity-number-validator";isValid("19900704-2386"); // => true
```## License
MIT © [Jonathan Svenheden](https://github.com/svenheden)
[npm-url]: https://npmjs.org/package/swedish-personal-identity-number-validator
[npm-image]: https://badge.fury.io/js/swedish-personal-identity-number-validator.svg
[tests-badge]: https://github.com/svenheden/swedish-personal-identity-number-validator/workflows/Tests/badge.svg