🚀 Big News:Socket Has Acquired Secure Annex.Learn More →
Socket
Book a DemoSign in
Socket

@borderless/base64

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@borderless/base64

Base64 encoding and decoding for ArrayBuffer

latest
Source
npmnpm
Version
1.0.1
Version published
Weekly downloads
2.1K
-28.69%
Maintainers
1
Weekly downloads
 
Created
Source

Base64

NPM version NPM downloads Build status Test coverage

Base64 encoding and decoding for ArrayBuffer.

Installation

npm install @borderless/base64 --save

Usage

import { encode, encodeUrl, decode } from "@borderless/base64";

expect(encode(new TextEncoder().encode("hello"))).toEqual("aGVsbG8=");
expect(encode(new TextEncoder().encode("你好"))).toEqual("5L2g5aW9");

TypeScript

This project is written using TypeScript and publishes the definitions directly to NPM.

License

MIT

Originally based on base64-arraybuffer, enhanced using TypeScript, ESM and support for Base64URL.

Keywords

base64

FAQs

Package last updated on 29 Jul 2020

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