Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/svenheden/swedish-postal-code-validator
Swedish postal code validator
https://github.com/svenheden/swedish-postal-code-validator
Last synced: 29 days ago
JSON representation
Swedish postal code validator
- Host: GitHub
- URL: https://github.com/svenheden/swedish-postal-code-validator
- Owner: svenheden
- License: mit
- Created: 2018-02-11T10:26:54.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2022-04-09T03:24:35.000Z (over 2 years ago)
- Last Synced: 2024-09-26T11:09:12.809Z (3 months ago)
- Language: JavaScript
- Size: 21.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-sweden - JavaScript
README
# Swedish postal code validator
Validates Swedish postal codes
![Tests][tests-badge]
[![NPM version][npm-image]][npm-url]## Install
```
$ npm install --save swedish-postal-code-validator
```## Usage
```js
import { isValid } from "swedish-postal-code-validator";isValid("41663"); // => true
isValid("32663"); // => false
```## License
MIT © [Jonathan Svenheden](https://github.com/svenheden)
[npm-url]: https://npmjs.org/package/swedish-postal-code-validator
[npm-image]: https://badge.fury.io/js/swedish-postal-code-validator.svg
[tests-badge]: https://github.com/svenheden/swedish-postal-code-validator/workflows/Tests/badge.svg