Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/solar05/glisbn
ISBN utility library for Gleam.
https://github.com/solar05/glisbn
gleam isbn
Last synced: about 2 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 (10 months ago)
- Default Branch: main
- Last Pushed: 2024-03-08T00:17:44.000Z (10 months ago)
- Last Synced: 2024-10-19T00:16:40.612Z (3 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
[![Package Version](https://img.shields.io/hexpm/v/glisbn)](https://hex.pm/packages/glisbn)
[![Hex Docs](https://img.shields.io/badge/hex-docs-ffaff3)](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
```