Package Exports
- base64-wasm
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 (base64-wasm) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
base64-wasm
A Base64 implementation for WebAssembly (WASM) writen in ZZ that implements an Abstract Encoding interface.
Installation
$ npm install base64-wasmUsage
const b64 = require('base64-wasm')
const message = Buffer.from('hello world')
const encoded = b64.encode(message)
console.log(encoded.toString()) // aGVsbG8gd29ybGQ=
const decoded = b64.decode(encoded)
console.log(decoded.toString()) // hello worldAPI
buffer = encode(input[, buffer[, offset]])
Base64 encode an input optionally into buffer at an optionally
specified offset.
buffer = decode(input[, buffer[, offset]])
Base64 decode an input optionally into buffer at an optionally
specified offset.
License
MIT