taiwan-id 1.0.0

Taiwan ID verifier and generator.
Documentation
  • Coverage
  • 75%
    3 out of 4 items documented2 out of 4 items with examples
  • Size
  • Source code size: 9.23 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 217.24 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • tonytonyjan/rust-taiwan-id
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • tonytonyjan

Taiwan ID

Usage

// verify
assert!(taiwan_id::is_valid("A123456789"))

// generate a random ID
taiwan_id::generate()

// generate a random ID for Taipei City
taiwan_id::generate_prefix("A")

// generate a random female ID for Taipei City
taiwan_id::generate_prefix("A2")