{"id":25350905,"url":"https://github.com/vincevargadev/convert_extensions_dart","last_synced_at":"2026-04-13T11:01:57.484Z","repository":{"id":61975100,"uuid":"482261077","full_name":"vincevargadev/convert_extensions_dart","owner":"vincevargadev","description":"Common convert methods exposed as static extensions method from the Dart core library and the convert package. Base64, ASCII, UTF8, Latin1, JSON, and more.","archived":false,"fork":false,"pushed_at":"2022-04-16T14:52:13.000Z","size":12,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-02-28T06:48:29.962Z","etag":null,"topics":["base64","convert","dart","decoders","encoders","flutter","json"],"latest_commit_sha":null,"homepage":"https://pub.dev/packages/convert_extensions","language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vincevargadev.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-04-16T13:27:07.000Z","updated_at":"2025-01-22T12:46:24.000Z","dependencies_parsed_at":"2022-10-24T13:45:38.536Z","dependency_job_id":null,"html_url":"https://github.com/vincevargadev/convert_extensions_dart","commit_stats":null,"previous_names":["vincevargadev/convert_extensions_dart","dartsidedev/convert_extensions"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/vincevargadev/convert_extensions_dart","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vincevargadev%2Fconvert_extensions_dart","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vincevargadev%2Fconvert_extensions_dart/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vincevargadev%2Fconvert_extensions_dart/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vincevargadev%2Fconvert_extensions_dart/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vincevargadev","download_url":"https://codeload.github.com/vincevargadev/convert_extensions_dart/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vincevargadev%2Fconvert_extensions_dart/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31749763,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-13T09:16:15.125Z","status":"ssl_error","status_checked_at":"2026-04-13T09:16:05.023Z","response_time":93,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["base64","convert","dart","decoders","encoders","flutter","json"],"created_at":"2025-02-14T17:18:53.951Z","updated_at":"2026-04-13T11:01:57.462Z","avatar_url":"https://github.com/vincevargadev.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"# `convert_extensions`\n\n\u003e Common convert methods exposed as static extensions method from the Dart core library and the convert package. Base64, ASCII, UTF8, Latin1, JSON, and more.\n\nThe `convert_extensions` package is a collection of [extension methods](https://dart.dev/guides/language/extension-methods)\nbased on the [`dart:convert` core library](https://api.dart.dev/stable/dart-convert/dart-convert-library.html),\nthe [`package:convert` package by the Dart team](https://pub.dev/packages/convert),\nand other conversion methods that are found in the Dart language.\n\nThese extension methods make it easier to read and write code that uses conversions as it hides the conversion complexity behind expressive getters and methods.\n\nEncode or decode with UTF8, Base64, JSON (and many more) with a simple and expressive API.\n\n[![Continuous Integration](https://github.com/dartsidedev/convert_extensions/workflows/Continuous%20Integration/badge.svg?branch=main)](https://github.com/dartsidedev/convert_extensions/actions) [![codecov](https://codecov.io/gh/dartsidedev/convert_extensions/branch/main/graph/badge.svg)](https://codecov.io/gh/dartsidedev/convert_extensions) [![convert_extensions](https://img.shields.io/pub/v/convert_extensions?label=convert_extensions\u0026logo=dart)](https://pub.dev/packages/convert_extensions 'See convert_extensions package info on pub.dev') [![Published by dartside.dev](https://img.shields.io/static/v1?label=Published%20by\u0026message=dartside.dev\u0026logo=dart\u0026logoWidth=30\u0026color=40C4FF\u0026labelColor=1d599b\u0026labelWidth=100)](https://pub.dev/publishers/dartside.dev/packages) [![GitHub Stars Count](https://img.shields.io/github/stars/dartsidedev/convert_extensions?logo=github)](https://github.com/dartsidedev/convert_extensions 'Star me on GitHub!')\n\n## Important links\n\n* [Read the source code and **star the repo** on GitHub](https://github.com/dartsidedev/convert_extensions)\n* [Open an issue on GitHub](https://github.com/dartsidedev/convert_extensions/issues)\n* [See package on pub.dev](https://pub.dev/packages/convert_extensions)\n* [Read the docs on pub.dev](https://pub.dev/documentation/convert_extensions/latest/)\n\n**If you enjoy using this package, a thumbs-up on [pub.dev](https://pub.dev/packages/convert_extensions) would be highly appreciated! 👍💙.**\n\n## Resources\n\n* [`dart:convert` core library](https://api.dart.dev/stable/dart-convert/dart-convert-library.html) \n* [`package:convert` package by the Dart team](https://pub.dev/packages/convert) \n\n## Motivation\n\nEncoding and decoding directly with the Dart core library (`dart:convert` and others) and the `package:convert`\nby the Dart team can be clunky, and it's sometimes hard to remember how to use those APIs.\n\nVia extension methods, this package makes it easier to convert via encoders and decoders.\n\nKeep in mind, that this package only provides static extension methods, and the actual conversion is still done via the\nthe Dart core library (`dart:convert` and others) and the `package:convert` package by the Dart team.\n\n## Usage\n\nJust import the package, and the static extension methods will be added.\n\n```dart\nimport 'package:convert_extensions/convert_extensions.dart';\n\nvoid main() {\n  // ASCII\n  print([99, 111, 110, 118, 101, 114, 116].asciiDecoded);\n  print('convert'.asciiEncoded);\n  \n  // Base64\n  print([99, 111, 110, 118, 101, 114, 116].base64Encoded);\n  print('Y29udmVydA=='.base64Decoded);\n  \n  // JSON\n  print('{\"convert\":true}'.jsonDecoded);\n  print({'convert': true}.jsonEncoded);\n  \n  // UTF8\n  print('convert'.utf8Encoded);\n  print([99, 111, 110, 118, 101, 114, 116].utf8Decoded);\n  \n  // URI\n  print('convert%20this'.uriDecoded);\n  print('convert this'.uriEncoded);\n  \n  // URI query component\n  print('convert+this'.uriQueryComponentDecoded);\n  print('convert this'.uriQueryComponentEncoded);\n  \n  // HEX\n  print('636f6e76657274'.hexDecoded);\n  print([99, 111, 110, 118, 101, 114, 116].hexEncoded);\n  \n  // Percent\n  print('hi/+'.percentDecoded);\n  print([104, 105, 47, 43].percentEncoded);\n}\n```\n\nYou can also combine these getters. As an example, this is how you would create a basic auth header:\n\n```dart\nvoid main() {\n  const username = 'johndoe';\n  const password = r'p@$$w0rd';\n  \n  final key = '$username:$password'.utf8Encoded.base64Encoded;\n  \n  print('Basic $key');\n}\n```\n\nFor all extension methods, see the [API reference](https://pub.dev/documentation/convert_extensions/latest/).\n\nYou can see more [usage examples in the `test` folder](https://github.com/dartsidedev/convert_extensions/tree/main/test).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvincevargadev%2Fconvert_extensions_dart","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvincevargadev%2Fconvert_extensions_dart","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvincevargadev%2Fconvert_extensions_dart/lists"}