ExNric alternatives and similar packages
Based on the "Utilities" category.
Alternatively, view ExNric alternatives based on common mentions on social networks and blogs.
-
quark
A library for common functional programming idioms: combinators, currying, and partial application. -
crutches
Utility library for Elixir, designed to complement the standard library bundled with the language. -
plasm
Plasm is Ecto's composable query multitool, containing higher-level functions such as .count, .random, .first, .last, .find, .inserted_before, .inserted_after, etc. -
pubsub
A Publish-Subscribe utility library that implements a pub-sub mechanism to ease the burden of communication on the business logic processes. -
erlsh
Family of functions and ports involving interacting with the system shell, paths and external programs. -
uef-lib
Useful Erlang Functions Library that provides modules for manipulating lists, binaries, maps, numbers, date and time. It contains some functions optimized for performance in specific cases (e.g. for file I/O operations or binary transformations).
Get performance insights in less than 4 minutes
Do you think we are missing an alternative of ExNric or a related project?
README
ExNric
About
Validation for Singapore National Registration Identity Card numbers (NRIC)
Installation
If available in Hex, the package can be installed
by adding ex_nric
to your list of dependencies in mix.exs
:
def deps do
[
{:ex_nric, "~> 0.2.0"}
]
end
Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/ex_nric.
Usage
import ExNric
{:ok, "S7343684B"} = validate("S7343684B")
{:error, :invalid_format} = validate("x")
{:error, :invalid_format} = validate("x")
{:error, :checksum_error} = validate("G0047750U")
Contributing
Pull requests to contribute new or improved features, and extend documentation are most welcome.
Please follow the existing coding conventions, or refer to the Elixir style guide.
You should include unit tests to cover any changes. Run mix test
to execute the test suite.
You should also ensure that dialyzer checks pass. Run mix dialyzer
to verify.