{"id":21408590,"url":"https://github.com/raku-community-modules/mime-base64","last_synced_at":"2025-07-14T00:34:30.059Z","repository":{"id":11435204,"uuid":"13890263","full_name":"raku-community-modules/MIME-Base64","owner":"raku-community-modules","description":"Encoding and decoding Base64 ASCII strings","archived":false,"fork":false,"pushed_at":"2024-06-30T19:47:53.000Z","size":57,"stargazers_count":7,"open_issues_count":1,"forks_count":9,"subscribers_count":150,"default_branch":"main","last_synced_at":"2024-07-03T20:22:55.630Z","etag":null,"topics":["base64-decoding","base64-encoding","mime-parser","raku"],"latest_commit_sha":null,"homepage":"","language":"Raku","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"artistic-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/raku-community-modules.png","metadata":{"files":{"readme":"README.md","changelog":"Changes","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":"2013-10-26T20:13:55.000Z","updated_at":"2024-06-30T19:47:56.000Z","dependencies_parsed_at":"2022-08-31T11:04:05.364Z","dependency_job_id":null,"html_url":"https://github.com/raku-community-modules/MIME-Base64","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raku-community-modules%2FMIME-Base64","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raku-community-modules%2FMIME-Base64/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raku-community-modules%2FMIME-Base64/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raku-community-modules%2FMIME-Base64/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/raku-community-modules","download_url":"https://codeload.github.com/raku-community-modules/MIME-Base64/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225934413,"owners_count":17547740,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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-decoding","base64-encoding","mime-parser","raku"],"created_at":"2024-11-22T17:17:23.712Z","updated_at":"2024-11-22T17:17:24.343Z","avatar_url":"https://github.com/raku-community-modules.png","language":"Raku","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Actions Status](https://github.com/raku-community-modules/MIME-Base64/actions/workflows/linux.yml/badge.svg)](https://github.com/raku-community-modules/MIME-Base64/actions) [![Actions Status](https://github.com/raku-community-modules/MIME-Base64/actions/workflows/macos.yml/badge.svg)](https://github.com/raku-community-modules/MIME-Base64/actions) [![Actions Status](https://github.com/raku-community-modules/MIME-Base64/actions/workflows/windows.yml/badge.svg)](https://github.com/raku-community-modules/MIME-Base64/actions)\n\nNAME\n====\n\nMIME::Base64 - Encoding and decoding Base64 ASCII strings\n\nSYNOPSIS\n========\n\n```raku\nuse MIME::Base64;\n\nmy $encoded = MIME::Base64.encode-str(\"xyzzy‽\", :eol(\"\\x0D\\x0A\"));\nmy $decoded = MIME::Base64.decode-str($encoded);\n```\n\nor\n\n```raku\nuse MIME::Base64;\n\nmy $encoded     = MIME::Base64.encode($blob, );\nmy $decoded-buf = MIME::Base64.decode($encoded);\n```\n\nDESCRIPTION\n===========\n\nImplements encoding and decoding to and from base64.\n\nMETHODS\n=======\n\nencode(Blob $data, :$oneline, :$eol = \"\\n\" --\u003e Str:D)\n-----------------------------------------------------\n\nEncodeѕ binary data `$data` in base64 format.\n\nBy default, the output is wrapped every 76 characters. If `:$oneline` is set, wrapping will be disabled. Also optionally takes a `:eol` named argument to indicate the type of line-ending to be used. Defaults to `\"\\n\"`.\n\ndecode(Str:D $encoded --\u003e Str:D)\n--------------------------------\n\nDecodes base64 encoded data into a binary buffer.\n\nencode-str(Str:D $string, :$oneline, :$eol = \"\\n\" --\u003e Str:D)`\n-------------------------------------------------------------\n\nEncodes `$string` into base64, assuming utf8 encoding. By default, the output is wrapped every 76 characters. If `:$oneline` is set, wrapping will be disabled. Also optionally takes a `:eol` named argument to indicate the type of line-ending to be used. Defaults to `\"\\n\"`.\n\ndecode-str(Str:D $encoded --\u003e Str:D)`\n-------------------------------------\n\nDecodes `$encoded` into a string, assuming utf8 encoding.\n\nCOMPATIBILITY METHODS\n=====================\n\nencode_base64(Str:D $string --\u003e Str:D)\n--------------------------------------\n\nSame as `.encode-str($string`.\n\ndecode_base64(Str:D $encoded --\u003e Str:D)\n---------------------------------------\n\nCalls `.decode-str($encoded)`\n\nAUTHOR\n======\n\nOriginally written by Adrian White. Maintained by many other people over the years. Now being maintained as a Raku community module.\n\nCOPYRIGHT AND LICENSE\n=====================\n\nCopyright 2010 - 2011 Adrian White\n\nCopyright 2012 - 2022 Raku Community\n\nThis library is free software; you can redistribute it and/or modify it under the Artistic License 2.0.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraku-community-modules%2Fmime-base64","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fraku-community-modules%2Fmime-base64","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraku-community-modules%2Fmime-base64/lists"}