beatgammit/base64-js
beatgammit/base64-js has 879 GitHub stars and 390 forks. GitHot measured 0 stars in 24 hours and 0 in 7 days. Last checked 2026-11-23 16:14 UTC. Last push 2024-07-25.
实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 正在收集历史
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
关于
使用纯 JS 进行 Base64 编码和解码
开发工具README.md
原文base64-js
Ongoing work has temporarily moved from beatgammit/base64-js to feross/base64-js.
base64-js does basic base64 encoding/decoding in pure JS.
Many browsers already have base64 encoding/decoding functionality, but it is for text data, not all-purpose binary data.
Sometimes encoding/decoding binary data in the browser is useful, and that is what this module does.
install
With npm do:
npm install base64-js and var base64js = require('base64-js')
For use in web browsers do:
<script src="base64js.min.js"></script>
Get supported base64-js with the Tidelift Subscription
methods
base64js has three exposed functions, byteLength, toByteArray and fromByteArray, which both take a single argument.
byteLength- Takes a base64 string and returns length of byte arraytoByteArray- Takes a base64 string and returns a byte arrayfromByteArray- Takes a byte array and returns a base64 string
license
MIT
探索相关项目
加载中…
