Skip to content

Latest commit

 

History

History
26 lines (16 loc) · 481 Bytes

README.md

File metadata and controls

26 lines (16 loc) · 481 Bytes

ISBNBuilder

Swift Package that creates a ISBN based on input value if it's valid.

Install

dependencies: [
    .package(url: "https://github.com/PeerBookClub/ISBNBuilder.git", exact: "1.0.0")
]

Usage

Create a ISBN using the builder and switch on its result:

let result = ISBNBuilder.buildISBN(rawValue: input)

// return Result<ISBN, ISBNError>

License

ISBNBuilder is available under the MIT license. See the LICENSE file for more info.