talira

convert (Dart)

Encoders and decoders for converting between data representations in Dart

open sourceBSD-3-Clausefree

convert is the Dart team's package of encoders and decoders that sits beside the SDK's dart:convert library, for the less central converters that need more flexible versioning. It has a hex codec (Base16), a percent codec for URL encoding and a FixedDateTimeFormatter for fixed-format date strings. It lives in the dart-lang/core monorepo and is published on pub.dev, under the BSD 3-Clause licence.

Problems it solves

  • encode bytes as a hex string in Dart
  • percent-encode and decode URL components in a Dart app
  • parse and format dates in a fixed-length pattern in Dart

Features

  • hex (Base16) codec
  • percent (URL) encoding codec
  • companion to dart:convert
  • fixed-length date formatting and parsing

Alternatives

The same job

These do what convert (Dart) does.

  1. asn1lib ASN.1 encoder and decoder for Dart, using BER encoding

Compare convert (Dart) with the top 3