Very simple extension to hi-base32 to encode/decode using URL-safe characters. Same idea of Base64URL, thus Base32URL.
Use this command to install:
npm install base32url
You could use like this:
If you use node.js, you should require the module first:
const Base32URL = require('base32url');
or import it
import * as Base32URL from 'base32url';
And then just call the functions when needed:
Base32URL.encode('String to encode');
Base32URL.decode([]]);
Encode string or bytes to base32url, set asciiOnly to true for better performace if it is.
Input string or bytes to encode.
Decode Base32URL string and return a byte array
Base32URL string to decode.
Decode Base32URL string and return a string
Base32URL string to decode.