base32-decode
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

Base32 Decode

Base32 decoder with support for multiple variants.

Installation

npm install --save base32-decode

Usage

const base32Decode = require('base32-decode')
 
console.log(base32Decode('EHJQ6X0', 'Crockford'))
//=> ArrayBuffer { 4 }
 
console.log(base32Decode('ORSXG5A=', 'RFC4648'))
//=> ArrayBuffer { 4 }
 
console.log(base32Decode('EHIN6T0=', 'RFC4648-HEX'))
//=> ArrayBuffer { 4 }

API

base32Decode(input, variant)

  • input <String>
  • variant <String>
  • Return: <ArrayBuffer> The decoded raw data

Decode the data in input. variant should be one of the supported variants listed below.

See also

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.0
    31,037
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.0
    31,037
  • 0.1.1
    2
  • 0.1.0
    0

Package Sidebar

Install

npm i base32-decode

Weekly Downloads

31,039

Version

1.0.0

License

MIT

Last publish

Collaborators

  • linusu