自動產生台灣統一編號以及驗證統一編號是否正確。
- Ruby 2.6+
gem install tw_vat_number
require 'tw/vat_number'
TW::VATNumber.generate => "57827987"
TW::VATNumber.valid?(00000022) => true
任何 Bug 回報和 PR 都歡迎在這邊開 issue 或是直接發 PR
https://github.com/5xTraining/tw_vat_number
The gem is available as open source under the terms of the MIT License