Skip to content

wayne5540/taiwanese_id_builder

Repository files navigation

This gem is deprecated and moved to Taiwanese Id Validator.

[Deprecated] TaiwaneseIdBuilder 台灣身分證字號驗證

公式

安裝

Gemfile:

gem 'taiwanese_id_builder'

執行

bundle install`

驗證身分證字號

TaiwaneseIdBuilder.valid?('A123456789') #=> true
TaiwaneseIdBuilder.valid?('A123456777') #=> false

產生身分證字號

TaiwaneseIdBuilder.generate #=> 隨機產生身分證字號
TaiwaneseIdBuilder.generate("male") #=> 男性的身分證字號
TaiwaneseIdBuilder.generate("female") #=> 女性的身分證字號

LICENSE

This project rocks and uses MIT-LICENSE.

About

generate taiwanese id and valid it.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages