ISBN v0.2.0 ISBN View Source
Documentation for ISBN.
Link to this section Summary
Link to this section Functions
Returns ISBN formatted.
Examples
iex> ISBN.format("9992158107")
"99-9215-810-7"
iex> ISBN.format("9992158106")
nil
Checks if the given string is a valid ISBN.
Works with both ISBN-10 and ISBN-13. Allows hyphens and spaces in the string.
Examples
iex> ISBN.valid?("9971502100")
true
iex> ISBN.valid?("978-03-0640-615-7")
true