persian_utils 2.0.1 icon indicating copy to clipboard operation
persian_utils: ^2.0.1 copied to clipboard

persian_utils is a collection of Persian helper extension methods

persian_utils #

Dart CI

persian_utils contains extension methods and validators for working with Persian texts. This package is a translation of .Net library DNTPersianUtils.Core in Dart.

Method list #

Validators #

Method NameExampleOutput
Iranian National Code Validator"0010350829".isValidIranianNationalCode()true
Sheba Number Validator"IR820540102680020817909002".
isValidIranShebaNumber()
true
Shetab Number Validator"6221061106498670".
isValidIranShetabNumber()
true
Iranian Mobile Number Validator"09901464762".
isValidIranianMobileNumber()
true
Iranian Phone Number Validator"37236445".
isValidIranianPhoneNumber()
true
Iranian Postal Code Validator"1619735744".
isValidIranianPostalCode()
true
Persian Number Checker"۹۹۹۹۹".
containsOnlyPersianNumbers()
true
Check Text Contains Farsi"Abc تست".
containsFarsi()
true
Check Text Contains Only Farsi Letters"تست".
containsOnlyFarsiLetters()
true
Iranian National Legal Code Validator"14005893875".isValidIranianNationalLegalCode()true

Acknowledgment #

Very thanks to Vahid Nasiri for his useful library DNTPersianUtils.Core

9
likes
140
pub points
77%
popularity

Publisher

unverified uploader

persian_utils is a collection of Persian helper extension methods

Repository (GitHub)

Documentation

API reference

License

Icon for licenses.Apache-2.0 (LICENSE, LICENSE.md)

More

Packages that depend on persian_utils