Launch Week Day 1: Socket for Jira Is Now Available.Learn More
Socket
Book a DemoSign in
Socket

@0xbeejs/base35

Package Overview
Dependencies
Maintainers
0
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@0xbeejs/base35

Encoding/decoding binary data using 35 charactors. The character set includes 1-9 and A-Z。

latest
npmnpm
Version
0.0.6
Version published
Maintainers
0
Created
Source

@0xbeejs/base35

Encoding/decoding binary data using 35 charactors. The character set includes 1-9 and A-Z。

Installation

$ yarn add @0xbeejs/base35

Usage

import Base35 from "@0xbeejs/base35";

const base35 = new Base35();
const data = Buffer.from("Hello, Base35!");
const encoded = base35.encode(data);

// Encoded: 5DZLVB0JWVWXTKR5PB5NHG
console.log("Encoded:", encoded);

const decoded = base35.decode(encoded);
// Decoded: Hello, Base35!
console.log("Decoded:", decoded.toString());

console.log(base35.is("IORO")) // ouput: false
console.log(base35.is(decoded)) // ouput: true

Keywords

0xbeejs

FAQs

Package last updated on 25 Dec 2024

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