šŸš€ Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more →
Socket
Sign inDemoInstall
Socket

hi-base32

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hi-base32

A simple Base32 encode / decode function for JavaScript supports UTF-8 encoding.

0.5.1
latest
Source
npm
Version published
Weekly downloads
373K
8.67%
Maintainers
1
Weekly downloads
Ā 
Created

What is hi-base32?

The hi-base32 npm package is a JavaScript library for encoding and decoding data using the Base32 encoding scheme. It is useful for applications that need to encode binary data into a text format that is more easily transmitted over text-based protocols.

What are hi-base32's main functionalities?

Base32 Encoding

This feature allows you to encode a string into Base32 format. The example encodes the string 'Hello, World!' into its Base32 representation.

const base32 = require('hi-base32');
const encoded = base32.encode('Hello, World!');
console.log(encoded); // Outputs: JBSWY3DPEBLW64TMMQ======

Base32 Decoding

This feature allows you to decode a Base32 encoded string back into its original format. The example decodes the Base32 string 'JBSWY3DPEBLW64TMMQ======' back to 'Hello, World!'.

const base32 = require('hi-base32');
const decoded = base32.decode('JBSWY3DPEBLW64TMMQ======');
console.log(decoded); // Outputs: Hello, World!

Other packages similar to hi-base32

Keywords

base32

FAQs

Package last updated on 22 Mar 2021

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