Skip to content

yob/san

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A small class for generating and validating Standard Address Numbers (SAN), a unique global identifier used in the book and publishing industries.

Installation

gem install san

Usage

SAN.new("9013725").valid?
=> true

SAN.valid?("9013725")
=> true

SAN.valid?("9013726")
=> false

SAN.complete("901372")
=> "9013725"

Further Reading

About

a (very) small library for working with Standard Address Numbers

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages