New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

base-32

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

base-32

Library to encode/decode strings or binary data in base32.

  • 0.0.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
830
decreased by-26.68%
Maintainers
1
Weekly downloads
 
Created
Source

Base-32 CircleCI

Library to encode/decode strings or binary data in base32. Note: This library uses the RFC 4648 Base32 alphabet.

Install

npm install base-32

Usage

Setup
const base32 = require('base-32').default;
Encoding Strings
const str = 'Encode this string';
base32.encode(str);
Output
IVXGG33EMUQHI2DJOMQHG5DSNFXGO===
Encoding Binary Data
const buf = new Buffer('this is a tést');
base32.encode(buf);
Output
ORUGS4ZANFZSAYJAOTB2S43U
Decoding
const encodedString = 'ORSXG5DJNZTQ====';
base32.decode(encodedString);
Output
testing

Methods

encode ⇒ String

Encodes a string or binary data in base32.

ParamType
inputString | Buffer
decode ⇒ String

Decodes data encoded in base32.

ParamType
inputString | Buffer

Keywords

FAQs

Package last updated on 09 Oct 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc