{"id":17399268,"url":"https://github.com/feross/base64-js","last_synced_at":"2025-08-23T05:32:56.936Z","repository":{"id":250019796,"uuid":"833251321","full_name":"feross/base64-js","owner":"feross","description":"New repo for ongoing work in https://github.com/beatgammit/base64-js (Base64 encoding/decoding in pure JS)","archived":false,"fork":false,"pushed_at":"2025-01-16T19:54:09.000Z","size":104,"stargazers_count":20,"open_issues_count":3,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-19T12:03:01.254Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/feross.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,"zenodo":null},"funding":{"github":"feross"}},"created_at":"2024-07-24T16:48:41.000Z","updated_at":"2025-05-07T13:54:46.000Z","dependencies_parsed_at":"2024-07-24T19:31:33.619Z","dependency_job_id":"aff96d37-5c3b-45af-84db-3f5e62a5df1a","html_url":"https://github.com/feross/base64-js","commit_stats":null,"previous_names":["feross/base64-js"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/feross/base64-js","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/feross%2Fbase64-js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/feross%2Fbase64-js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/feross%2Fbase64-js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/feross%2Fbase64-js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/feross","download_url":"https://codeload.github.com/feross/base64-js/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/feross%2Fbase64-js/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271745596,"owners_count":24813509,"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","status":"online","status_checked_at":"2025-08-23T02:00:09.327Z","response_time":69,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-10-16T15:14:38.968Z","updated_at":"2025-08-23T05:32:56.903Z","avatar_url":"https://github.com/feross.png","language":"JavaScript","funding_links":["https://github.com/sponsors/feross","https://tidelift.com/subscription/pkg/npm-base64-js?utm_source=npm-base64-js\u0026utm_medium=referral\u0026utm_campaign=readme"],"categories":["JavaScript"],"sub_categories":[],"readme":"# base64-js\n\n### Ongoing work has temporarily moved from [beatgammit/base64-js](https://github.com/beatgammit/base64-js) to [feross/base64-js](https://github.com/feross/base64-js).\n\n`base64-js` does basic base64 encoding/decoding in pure JS.\n\n[![CI](https://github.com/feross/base64-js/actions/workflows/main.yml/badge.svg)](https://github.com/feross/base64-js/actions/workflows/main.yml)\n\nMany browsers already have base64 encoding/decoding functionality, but it is for text data, not all-purpose binary data.\n\nSometimes encoding/decoding binary data in the browser is useful, and that is what this module does.\n\n## install\n\nWith [npm](https://npmjs.org) do:\n\n`npm install base64-js` and `var base64js = require('base64-js')`\n\nFor use in web browsers do:\n\n`\u003cscript src=\"base64js.min.js\"\u003e\u003c/script\u003e`\n\n[Get supported base64-js with the Tidelift Subscription](https://tidelift.com/subscription/pkg/npm-base64-js?utm_source=npm-base64-js\u0026utm_medium=referral\u0026utm_campaign=readme)\n\n## methods\n\n`base64js` has three exposed functions, `byteLength`, `toByteArray` and `fromByteArray`, which both take a single argument.\n\n- `byteLength` - Takes a base64 string and returns length of byte array\n- `toByteArray` - Takes a base64 string and returns a byte array\n- `fromByteArray` - Takes a byte array and returns a base64 string\n\n## license\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffeross%2Fbase64-js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffeross%2Fbase64-js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffeross%2Fbase64-js/lists"}