Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/guyskk/js-base32j
Base32 exclude letter i j l o, without padding.
https://github.com/guyskk/js-base32j
Last synced: 29 days ago
JSON representation
Base32 exclude letter i j l o, without padding.
- Host: GitHub
- URL: https://github.com/guyskk/js-base32j
- Owner: guyskk
- Created: 2021-04-19T09:17:06.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-04-19T10:49:28.000Z (over 3 years ago)
- Last Synced: 2024-10-06T02:35:28.855Z (about 1 month ago)
- Language: JavaScript
- Homepage:
- Size: 64.5 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## JS-Base32j
Base32 exclude letter `i j l o`, without padding.
Alphabet: `0123456789abcdefghkmnpqrstuvwxyz````
npm install js-base32j
```See also: https://github.com/guyskk/base32j
## Usage
```javascript
import base32j from 'js-base32j'base32j.encode('hello world') // 'd1kqsv3f41vqywmccg'
base32j.decode('d1kqsv3f41vqywmccg') // 'hello world'let bytes = [104, 101, 108, 108, 111, 32, 119, 111, 114, 108, 100]
base32j.encodeBytes(bytes) // 'd1kqsv3f41vqywmccg'
base32j.decodeBytes('d1kqsv3f41vqywmccg') // bytes above
```