JSPM

fast-base64-decode

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1488061
  • Score
    100M100P100Q211608F
  • License MIT

Package Exports

  • fast-base64-decode

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (fast-base64-decode) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Fast Base64 Decoding

A fast Base64 decoder with a low level API. If you want a high level API, look at base64-js.

Installation

npm install --save fast-base64-decode

Usage

const base64Decode = require('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)