Skip to content

📠 Base32 encoder/decoder for JavaScript

License

Notifications You must be signed in to change notification settings

codec-bytes/base32

Repository files navigation

Base32 encoder/decoder for JavaScript. See docs. Parent is @codec-bytes/about.

import*asasciifrom'@codec-bytes/ascii';import*asbase32from'@codec-bytes/base32';letbytes=ascii.encode('Hello!');base32.decode(bytes);// 'JBSWY3DPEE======'base32.decode(bytes,{variant: 'base32hex'});// '91IMOR3F44======'base32.decode(bytes,{variant: 'z-base-32'});// 'jb1sa5dxrr'base32.decode(bytes,{variant: 'crockford'});// '91JPRV3F44'base32.decode(bytes,{alphabet: 'BCDEFGHIJKLMNOPQRSTUVWXYZ234567A',padding: '.'});// 'KCTXZ4EQFF......'

LicenseVersionTestsDependenciesGitHub issuesDownloads

Code issuesCode maintainabilityCode coverage (cov)Code technical debtDocumentationPackage size

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •