Skip to content
pubscout

persian_tools

1.0.3, released 4 years ago by an unverified publisher

An anthology of tools for the Persian language, including number/word conversion and validation.

WASM-ready
$ flutter pub add persian_tools
Source repository

What it does

Provides utility functions and string extensions for Persian language tasks, such as converting between Persian numbers and words, validating Iranian national IDs, checking bank IBANs (SHEBA), validating ATM card numbers, and parsing vehicle plates.

AI-written summary of version 1.0.3, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to convert numbers to Persian words or Persian words to numbers.
  • You need to validate Iranian national IDs, phone numbers, bank card numbers, or SHEBA accounts.
  • You need to format and process Persian text, digits, and vehicle plates.

Skip it when

  • You are not working with Persian language data or Iranian local formats.

Strengths

  • Wide variety of helper functions and convenient String extensions for Persian text and numbers.
  • Supports multiple platforms including Android, iOS, Web, Windows, macOS, and Linux.
  • Zero dependencies.

Weaknesses

  • Domain-specific exclusively to Persian language and Iranian validation standards.

Setup

Kind
Pure Dart
Effort
Low
Code generation
No
Direct dependencies
0
var number = 'سی سه';
var result = addOrdinalSuffix(number);

Alternatives

Packages that do the same job and could replace persian_tools.