Socket
Socket
Sign inDemoInstall

@hazae41/base16

Package Overview
Dependencies
5
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @hazae41/base16

Base16 adapter for WebAssembly and JS implementations


Version published
Weekly downloads
12
decreased by-40%
Maintainers
1
Install size
856 kB
Created
Weekly downloads
 

Readme

Source

Base16

Base16 adapter for WebAssembly and JS implementations

npm i @hazae41/base16

Node Package 📦

Features

Current features

  • 100% TypeScript and ESM
  • No external dependencies

Getting started

Buffer (NodeJS)

import { Base16 } from "@hazae41/base16"

Base16.set(Base16.fromBuffer())

Alocer (WebAssembly)

npm i @hazae41/alocer
import { Base16 } from "@hazae41/base16"

Base16.set(await Base16.fromBufferOrAlocer())

Scure (JavaScript)

npm i @scure/base
import { Base16 } from "@hazae41/base16"

Base16.set(Base16.fromBufferOrScure())

Usage

Direct

const encoded: string = Base16.get().tryEncode(new Uint8Array([1,2,3,4,5])).unwrap()
const decoded: Uint8Array = Base16.get().tryDecode(encoded).unwrap().copyAndDispose()

Keywords

FAQs

Last updated on 23 Feb 2024

Did you know?

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc