{"id":13432862,"url":"https://github.com/beatgammit/base64-js","last_synced_at":"2025-05-13T21:12:10.281Z","repository":{"id":1925089,"uuid":"2853282","full_name":"beatgammit/base64-js","owner":"beatgammit","description":"Base64 encoding/decoding in pure JS","archived":false,"fork":false,"pushed_at":"2024-07-25T09:39:14.000Z","size":103,"stargazers_count":878,"open_issues_count":5,"forks_count":386,"subscribers_count":26,"default_branch":"master","last_synced_at":"2025-05-07T23:37:26.749Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/beatgammit.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":"2011-11-25T23:58:48.000Z","updated_at":"2025-05-05T10:44:10.000Z","dependencies_parsed_at":"2024-11-06T20:03:24.897Z","dependency_job_id":"56fdeba0-33c9-4d7d-98d8-2aef483b25a5","html_url":"https://github.com/beatgammit/base64-js","commit_stats":{"total_commits":133,"total_committers":16,"mean_commits":8.3125,"dds":0.2556390977443609,"last_synced_commit":"303e81353e21339da09adb1e2fc0da74626bd8b2"},"previous_names":[],"tags_count":19,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beatgammit%2Fbase64-js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beatgammit%2Fbase64-js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beatgammit%2Fbase64-js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beatgammit%2Fbase64-js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/beatgammit","download_url":"https://codeload.github.com/beatgammit/base64-js/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253633114,"owners_count":21939389,"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":[],"created_at":"2024-07-31T02:01:17.729Z","updated_at":"2025-05-13T21:12:05.262Z","avatar_url":"https://github.com/beatgammit.png","language":"JavaScript","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[![build status](https://secure.travis-ci.org/beatgammit/base64-js.png)](http://travis-ci.org/beatgammit/base64-js)\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","funding_links":["https://tidelift.com/subscription/pkg/npm-base64-js?utm_source=npm-base64-js\u0026utm_medium=referral\u0026utm_campaign=readme"],"categories":["JavaScript","Back-end","text （文本处理）"],"sub_categories":["Buffer utilities"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbeatgammit%2Fbase64-js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbeatgammit%2Fbase64-js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbeatgammit%2Fbase64-js/lists"}