Add isbn
to your list of dependencies in mix.exs
:
def deps do
[{:isbn, "~> 0.1.0"}]
end
ISBN.valid?/1
checks if the given string is a valid ISBN.
ISBN.valid?("0-306-40615-2")
#=> true
ISBN.valid?("1234567")
#=> false
An Elixir package to check valid ISBNs
Add isbn
to your list of dependencies in mix.exs
:
def deps do
[{:isbn, "~> 0.1.0"}]
end
ISBN.valid?/1
checks if the given string is a valid ISBN.
ISBN.valid?("0-306-40615-2")
#=> true
ISBN.valid?("1234567")
#=> false