Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

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

Awesome Lists containing this project

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