New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

zbase32

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

zbase32

z-base-32 encoding/decoding library

latest
Source
npmnpm
Version
2.0.6
Version published
Weekly downloads
336
29.23%
Maintainers
1
Weekly downloads
 
Created
Source

zbase32

This zbase32 library encodes ArrayBuffers to zbase32 encoded strings and back.

If you want to encode strings you'll have to convert them to ArrayBuffers, you can use the TextEncoder API.

Example

import zbase32 from 'zbase32';

zbase32.encode(new TextEncoder('utf-8').encode('hello'));
// => 'pb1sa5dx'

new TextDecoder('utf-8').decode(zbase32.decode('pb1sa5dx'));
// => 'hello'

License

Copyright 2023 Kuno Woudt kuno@frob.nl

This program is free software: you can redistribute it and/or modify it under the terms of copyleft-next 0.3.1. See copyleft-next-0.3.1.txt.

FAQs

Package last updated on 04 Mar 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