You're Invited: Meet the Socket team at BSidesSF and RSAC - April 27 - May 1.RSVP
Socket
Sign inDemoInstall
Socket

@oslojs/encoding

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

@oslojs/encoding

Runtime-agnostic library for encoding and decoding data

1.1.0
latest
Source
npm
Version published
Weekly downloads
553K
5.08%
Maintainers
1
Weekly downloads
 
Created
Source

@oslojs/encoding

Documentation: https://encoding.oslojs.dev

A JavaScript library for encoding and decoding data with hexadecimal, base32, base64, and base64url encoding schemes based on RFC 4648. Implementations may be stricter than most to follow the RFC as close as possible.

  • Runtime-agnostic
  • No third-party dependencies
  • Fully typed
import { encodeBase64, decodeBase64 } from "@oslojs/encoding";

const data: Uint8Array = new TextEncoder().encode("hello world");
const encoded = encodeBase64(data);
const decoded = decodeBase64(encoded);

Installation

npm i @oslojs/encoding

Keywords

auth

FAQs

Package last updated on 24 Sep 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