base32-decode
Base32 decoder with support for multiple variants.
Last updated 8 years ago by linusu .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install base32-decode 
SYNC missed versions from official npm registry.

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

Current Tags

  • 1.0.0                                ...           latest (8 years ago)

3 Versions

  • 1.0.0                                ...           8 years ago
  • 0.1.1                                ...           8 years ago
  • 0.1.0                                ...           10 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 3
Dependencies (0)
None
Dev Dependencies (3)
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |