Project

isbn10

0.0
No commit activity in last 3 years
No release in over 3 years
a (very) small library for working with ISBN10 codes
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0
~> 3.0

Runtime

>= 0
 Project Readme

A small class for generating and validating 10's, the 10 digit codes that are found on many book-ish products sold before 2005.

Yes there are man other ISBN gems out there. I wanted one that has a similar API to my other identifier related gems (ean13, abn, san, upc, etc) to reduce the number of APIs I have to remember.

Installation

gem install isbn10

Usage

ISBN10.new("0140449043").valid?
=> true

ISBN10.valid?("0140449043")
=> true

ISBN10.valid?("0140449042")
=> false

ISBN10.complete("014044904")
=> "0140449043"

ISBN10.new("0140449043").to_ean
=> "9780140449044"

Further Reading

Contributing

Source code is publicly available @ http://github.com/yob/isbn10. Patches welcome, preferably via a git repo I can pull from.