https://github.com/solar05/glisbn
ISBN utility library for Gleam.
https://github.com/solar05/glisbn
gleam isbn
Last synced: 7 months ago
JSON representation
ISBN utility library for Gleam.
- Host: GitHub
- URL: https://github.com/solar05/glisbn
- Owner: solar05
- License: mit
- Created: 2024-03-07T20:37:06.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-03-08T00:17:44.000Z (over 1 year ago)
- Last Synced: 2025-02-20T12:47:42.658Z (8 months ago)
- Topics: gleam, isbn
- Language: Gleam
- Homepage:
- Size: 1.09 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-gleam - glisbn - [📚](https://hexdocs.pm/glisbn/) - A ISBN utility library for Gleam. (Packages / Standards)
README
# glisbn
[](https://hex.pm/packages/glisbn)
[](https://hexdocs.pm/glisbn/)A ISBN utility library for the Gleam.
```sh
gleam add glisbn
```
```gleam
import glisbnpub fn main() {
let isbn10 = "9788535902778"
glisbn.is_valid(isbn10) // -> trueglisbn.hyphenate(isbn10) // -> Ok("978-85-359-0277-8")
glisbn.isbn10_to_13(isbn10) // -> Ok("9789788535904")
glisbn.get_publisher_zone(isbn10) // -> Ok("Brazil")
// for more other usage examples see docs
}
```Further documentation can be found at .
## Development
```sh
gleam run # Run the project
gleam test # Run the tests
gleam shell # Run an Erlang shell
```