Socket
Book a DemoInstallSign in
Socket

bazinga64

Package Overview
Dependencies
Maintainers
9
Versions
257
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bazinga64

Base64 encoding and decoding with ASCII string representation.

6.5.1
latest
Source
npmnpm
Version published
Weekly downloads
2.3K
63.75%
Maintainers
9
Weekly downloads
 
Created
Source

Wire

This repository is part of the source code of Wire. You can find more information at wire.com or by contacting opensource@wire.com.

You can find the published source code at github.com/wireapp.

For licensing information, see the attached LICENSE file and the list of third-party licenses at wire.com/legal/licenses/.

Installation

yarn add bazinga64
npm -i bazinga64
const bazinga64 = require('bazinga64');

Development

yarn
yarn dist

Usage

// Encoding
const encoded = bazinga64.Encoder.toBase64('Hello');
const base64 = encoded.asString;
console.log(base64); // "SGVsbG8="
// Decoding
const decoded = bazinga64.Decoder.fromBase64('SGVsbG8=');
const text = decoded.asString;
console.log(text); // "Hello"

TypeScript Usage

import {Decoder} from 'bazinga64';
const typedArray: Uint8Array = Decoder.fromBase64('SGVsbG8=').asBytes;

API

Decoder

  • fromBase64

Encoder

  • toBase64
  • toBase64Url

Converter

  • arrayBufferViewToString
  • arrayBufferViewToStringUTF8
  • arrayBufferViewToBaselineString
  • jsonToArrayBufferView
  • numberArrayToArrayBufferView
  • stringToArrayBufferViewUTF16
  • stringToArrayBufferViewUTF8
  • hexStringToArrayBufferView
  • toArrayBufferView
  • toString

Keywords

array

FAQs

Package last updated on 05 Aug 2025

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.