Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/personnummer/ruby

Validate Swedish personal identity numbers
https://github.com/personnummer/ruby

hacktoberfest personal-identity-number personnummer ruby social-security-number validation

Last synced: 2 months ago
JSON representation

Validate Swedish personal identity numbers

Awesome Lists containing this project

README

        

# personnummer [![Build Status](https://github.com/personnummer/ruby/workflows/build/badge.svg)](https://github.com/personnummer/ruby/actions)

Validate personal identity numbers.

## Installation

Add this to your `Gemfile`

```
gem 'personnummer', :git => 'https://github.com/personnummer/ruby.git'
```

Then run `bundle install`

## Example

```ruby
require 'personnummer'

puts Personnummer.valid?("8507099805")
# => True
```

See [test/test_personnummer.rb](test/test_personnummer.rb) for more examples.

## License

MIT