https://github.com/linusu/fast-base64-decode
A fast Base64 decoder with a low level API
https://github.com/linusu/fast-base64-decode
base64 base64-decoding
Last synced: 2 months ago
JSON representation
A fast Base64 decoder with a low level API
- Host: GitHub
- URL: https://github.com/linusu/fast-base64-decode
- Owner: LinusU
- License: mit
- Created: 2018-08-19T16:54:44.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2022-10-30T13:50:41.000Z (about 3 years ago)
- Last Synced: 2024-12-28T04:50:27.283Z (12 months ago)
- Topics: base64, base64-decoding
- Language: JavaScript
- Size: 40 KB
- Stars: 5
- Watchers: 4
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
# Fast Base64 Decoding
A fast Base64 decoder with a low level API. If you want a high level API, look at [base64-js](https://github.com/beatgammit/base64-js).
## Installation
```sh
npm install --save fast-base64-decode
```
## Usage
```js
import base64Decode from 'fast-base64-decode'
// You need to know the length of the decoded data
const result = new Uint8Array(13)
// Pass the string to decode, and a `UInt8Array` where the bytes will be written
base64Decode('SGVsbG8sIFdvcmxkIQ==', result)
```