Package Exports
- base32-codecs
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (base32-codecs) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
base32-codecs
base32-codecs is a codecs compatible adapter to base32-encode and base32-decode.
Usage
const {
base32, // RFC4648, unpadded
base32c, // Crockford
base32h, // RFC4648-HEX, unpadded
base32hp, // RFC4648-HEX, padded
base32p // RFC4648, Padded
} = require('base32-codecs')
for (const codec of [base32, base32c, base32h, base32hp, base32p]) {
codec.encode(
codec.decode(crypto.randomBytes(10))
)
}