https://github.com/nithinbekal/isbn
An Elixir package to check valid ISBNs
https://github.com/nithinbekal/isbn
books elixir elixir-lang
Last synced: over 1 year ago
JSON representation
An Elixir package to check valid ISBNs
- Host: GitHub
- URL: https://github.com/nithinbekal/isbn
- Owner: nithinbekal
- Created: 2016-11-22T06:23:24.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2021-11-10T00:48:35.000Z (over 4 years ago)
- Last Synced: 2025-02-28T12:07:49.560Z (over 1 year ago)
- Topics: books, elixir, elixir-lang
- Language: Elixir
- Size: 7.81 KB
- Stars: 3
- Watchers: 1
- Forks: 3
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
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
```