Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/nithinbekal/isbn

An Elixir package to check valid ISBNs
https://github.com/nithinbekal/isbn

books elixir elixir-lang

Last synced: 2 months ago
JSON representation

An Elixir package to check valid ISBNs

Awesome Lists containing this project

README

        

# ISBN

## Installation

Add `isbn` to your list of dependencies in `mix.exs`:

```elixir
def deps do
[{:isbn, "~> 0.1.0"}]
end
```

## Examples

`ISBN.valid?/1` checks if the given string is a valid ISBN.

```elixir
ISBN.valid?("0-306-40615-2")
#=> true

ISBN.valid?("1234567")
#=> false
```