{"id":27118588,"url":"https://github.com/doga/base64","last_synced_at":"2025-04-07T07:58:57.476Z","repository":{"id":285216074,"uuid":"957408049","full_name":"doga/base64","owner":"doga","description":"A JavaScript library for converting to/from base64.","archived":false,"fork":false,"pushed_at":"2025-03-30T10:18:21.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-30T11:23:41.995Z","etag":null,"topics":["base64"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/doga.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-03-30T09:47:54.000Z","updated_at":"2025-03-30T10:17:57.000Z","dependencies_parsed_at":"2025-03-30T11:23:45.599Z","dependency_job_id":"08d0cd7d-f131-484a-93cd-6476bd2dc92a","html_url":"https://github.com/doga/base64","commit_stats":null,"previous_names":["doga/base64"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doga%2Fbase64","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doga%2Fbase64/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doga%2Fbase64/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doga%2Fbase64/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/doga","download_url":"https://codeload.github.com/doga/base64/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247615461,"owners_count":20967183,"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"],"created_at":"2025-04-07T07:58:56.977Z","updated_at":"2025-04-07T07:58:57.453Z","avatar_url":"https://github.com/doga.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Base64 conversions\n\nA JavaScript library for converting to/from [base64](https://developer.mozilla.org/en-US/docs/Glossary/Base64).\n\n## Usage example\n\n\u003cdetails data-mdrb\u003e\n\u003csummary\u003eConvert string to/from base64:\u003c/summary\u003e\n\n\u003cpre\u003e\ndescription = '''\n\n'''\n\u003c/pre\u003e\n\u003c/details\u003e\n\n```javascript\nimport {stringToBase64, base64ToString} from \"https://esm.sh/gh/doga/base64@1.0.0/mod.mjs\";\n\nconst\nstrIn  = 'hello',\nbase64 = stringToBase64(strIn),\nstrOut = base64ToString(base64);\n\nconsole.info(`strIn: \"${strIn}\", base64: \"${base64}\", strOut: \"${strOut}\"`);\n```\n\nSample output for the code above:\n\n```text\nstrIn: \"hello\", base64: \"aGVsbG8=\", strOut: \"hello\"\n```\n\n### Run the usage example\n\nRun the example above by typing this in your terminal (requires [Deno](https://deno.com/) 2+):\n\n```shell\ndeno run --allow-net --allow-run --allow-env --allow-read jsr:@andrewbrey/mdrb@3.0.4 --dax=false --mode=isolated https://raw.githubusercontent.com/doga/base64/refs/heads/main/README.md\n```\n\n∎\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdoga%2Fbase64","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdoga%2Fbase64","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdoga%2Fbase64/lists"}