Zbase32
This zbase32 library encodes ArrayBuffers to zbase32 encoded strings and back.
Install / Use
/learn @warpr/Zbase32README
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'
Provenance
Some notes on releasing a new version, as I do this infrequently enough that I forget :)
- Go to NPM -> user menu -> access tokens
- Create a granular access token for GitHub actions, with read/write access to zbase32
- Go to https://github.com/warpr/zbase32/settings -> Secrets and variables
- Update the NPM_TOKEN environment variable to the newly created token
- Push the version you want to publish to GitHub
- At https://github.com/warpr/zbase32/releases create a new release
- The publish action should now run automatically, which should publish the new version to npm and log the provenance info
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.
Related Skills
node-connect
345.9kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
106.4kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
345.9kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
345.9kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
