phone_numbers_parser 5.0.5 copy "phone_numbers_parser: ^5.0.5" to clipboard
phone_numbers_parser: ^5.0.5 copied to clipboard

Dart library for parsing phone numbers. Inspired by Google's libphonenumber and PhoneNumberKit for ios.

149
likes
120/ 140
pub points
98%
popularity

We analyzed this package 8 days ago, and awarded it 120 pub points (of a possible 140):

OK
Follow Dart file conventions
30 / 30trigger folding of the section

10/10 points: Provide a valid pubspec.yaml

5/5 points: Provide a valid README.md

5/5 points: Provide a valid CHANGELOG.md

10/10 points: Use an OSI-approved license

Detected license: MIT.

OK
Provide documentation
20 / 20trigger folding of the section

10/10 points: 20% or more of the public API has dartdoc comments

37 out of 60 API elements (61.7 %) have documentation comments.

Some symbols that are missing documentation: phone_number_parser.Code, phone_number_parser.Code.Code, phone_number_parser.IsoCode, phone_number_parser.IsoCode.IsoCode, phone_number_parser.IsoCode.fromJson.

10/10 points: Package has an example

OK
Platform support
20 / 20trigger folding of the section

20/20 points: Supports 6 of 6 possible platforms (iOS, Android, Web, Windows, macOS, Linux)

  • ✓ Android
  • ✓ iOS
  • ✓ Windows
  • ✓ Linux
  • ✓ macOS
  • ✓ Web
failed
Pass static analysis
30 / 50trigger folding of the section

30/50 points: code has no errors, warnings, lints, or formatting issues

WARNING: This API is available since SDK 2.15.0, but constraints '>=2.14.0 <3.0.0' don't guarantee it.

lib/src/models/phone_number.dart:222:26

    ╷
222 │       'isoCode': isoCode.name,
    │                          ^^^^
    ╵

To reproduce make sure you are using the lints_core and run dart analyze lib/src/models/phone_number.dart

WARNING: This API is available since SDK 2.15.0, but constraints '>=2.14.0 <3.0.0' don't guarantee it.

lib/src/models/phone_number.dart:229:31

    ╷
229 │       isoCode: IsoCode.values.byName(map['isoCode']),
    │                               ^^^^^^
    ╵

To reproduce make sure you are using the lints_core and run dart analyze lib/src/models/phone_number.dart

OK
Support up-to-date dependencies
20 / 20trigger folding of the section

10/10 points: All of the package dependencies are supported in the latest version

Package Constraint Compatible Latest
dart_countries ^3.0.2 3.0.3 3.0.3
meta ^1.7.0 1.14.0 1.14.0
phone_number_metadata ^5.0.3 5.0.5 5.0.5
Transitive dependencies
Package Constraint Compatible Latest
path - 1.9.0 1.9.0

To reproduce run dart pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides.

10/10 points: Package supports latest stable Dart and Flutter SDKs

Analyzed with Pana 0.22.3, Dart 3.3.3.

Check the analysis log for details.

149
likes
120
pub points
98%
popularity

Publisher

unverified uploader

Dart library for parsing phone numbers. Inspired by Google's libphonenumber and PhoneNumberKit for ios.

Repository (GitHub)
View/report issues
Contributing

Documentation

API reference

License

MIT (LICENSE)

Dependencies

dart_countries, meta, phone_number_metadata

More

Packages that depend on phone_numbers_parser