Search packages, repositories and app categories

Package detailsv1.0.0

punycode

An implementation of the punycode algorithm.

AndroidiOSLinuxmacOSWebWindows
30-day downloads
68.4K
Likes
3
Pub points
130

Install package

flutter pub add punycode

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

A Dart implementation of the punycode algorithm, designed to encode and decode Unicode domain names into ASCII-compatible formats. This is particularly useful for handling internationalized domain names (IDNs) in web applications and DNS systems. The package ensures compatibility with standards like RFC 3492, enabling safe representation of non-ASCII characters in URLs and domain names. It's lightweight, efficient, and suitable for use across all major platforms supported by Flutter.

Use cases

  • Encoding internationalized domain names
  • Decoding IDN URLs
  • Ensuring DNS compatibility
  • Supporting multilingual web addresses
  • Validating domain name formats

Key features

  • RFC 3492 compliant
  • Lightweight and fast
  • Cross-platform support
  • Simple API for encoding/decoding
  • No external dependencies

Suitable for

  • Web and mobile apps handling international domains
  • URL processing tools
  • DNS-related utilities
  • Internationalization features
  • Developers needing ASCII-safe domain handling

Considerations

  • Only handles domain name encoding, not full URL parsing
  • Not intended for general text encoding
  • Requires manual input validation
  • Limited to punycode-specific use cases
  • Does not support reverse encoding without proper context

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

punycode

Direct translation of the C algorithm in RFC 3492 to dart.

Stringprep / PRECIS

This library does not implement stringprep (RFC 3454) or PRECIS (RFC 7564).

Those RFCs are needed for domain name conversion.

Categories

Source repository

Projects using this package

Rankings