https://github.com/crabonature/ex_nip
Elixir library for NIP number.
https://github.com/crabonature/ex_nip
elixir elixir-library nip nip-validation nip-validator
Last synced: 4 months ago
JSON representation
Elixir library for NIP number.
- Host: GitHub
- URL: https://github.com/crabonature/ex_nip
- Owner: crabonature
- License: apache-2.0
- Created: 2018-01-08T19:28:19.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-01-08T19:39:03.000Z (over 8 years ago)
- Last Synced: 2025-10-31T22:01:01.564Z (7 months ago)
- Topics: elixir, elixir-library, nip, nip-validation, nip-validator
- Language: Elixir
- Homepage:
- 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
# ExNip
**Elixir library for NIP number.**
* `ExNip.valid?/1` - you can check if NIP number is valid
More about NIP number:
* [Wikipedia PL](https://pl.wikipedia.org/wiki/NIP)
## Usage
```elixir
iex> ExNip.valid?("1060000062")
true
iex> ExNip.valid?("106-00-00-062")
true
iex> ExNip.valid?("106-000-00-62")
true
iex> ExNip.valid?("1234567890")
false
```
## Installation
Package can be installed by adding `ex_nip`
to your list of dependencies in `mix.exs`:
```elixir
def deps do
[
{:ex_nip, "~> 0.1.0"}
]
end
```
## Documentation
Docs can be found at [https://hexdocs.pm/ex_nip](https://hexdocs.pm/ex_nip).
## License
Source code of ex_nip is released under the Apache 2.0 license, see the [LICENSE](LICENSE) file.