https://github.com/crabonature/ex_regon
Elixir library for REGON number.
https://github.com/crabonature/ex_regon
elixir elixir-library regon regon-validation regon-validator
Last synced: 4 months ago
JSON representation
Elixir library for REGON number.
- Host: GitHub
- URL: https://github.com/crabonature/ex_regon
- Owner: crabonature
- License: apache-2.0
- Created: 2018-01-10T19:14:34.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-01-10T19:16:22.000Z (over 8 years ago)
- Last Synced: 2025-10-31T22:15:36.964Z (8 months ago)
- Topics: elixir, elixir-library, regon, regon-validation, regon-validator
- Language: Elixir
- Size: 7.81 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# ExRegon
**Elixir library for REGON number.**
* `ExRegon.valid?/1` - you can check if REGON number is valid
More about REGON number:
* [Wikipedia PL](https://pl.wikipedia.org/wiki/REGON)
## Usage
```elixir
iex> ExRegon.valid?("390170518")
true
iex> ExRegon.valid?("859222088")
false
iex> ExRegon.valid?("39017051841250")
true
iex> ExRegon.valid?("39016051841250")
false
```
## Installation
Package can be installed by adding `ex_regon`
to your list of dependencies in `mix.exs`:
```elixir
def deps do
[
{:ex_regon, "~> 0.1.0"}
]
end
```
## Documentation
Docs can be found at [https://hexdocs.pm/ex_regon](https://hexdocs.pm/ex_regon).
## License
Source code of ex_regon is released under the Apache 2.0 license, see the [LICENSE](LICENSE) file.