import init, { encode, decode } from 'base64-simd-wasm-vn/web';
await init();
const data = "SIMD-accelerated base64 encoding and decoding"
const encoded = encode(new TextEncoder().encode(data));
const decoded = decode(encoded);
console.log("data: ", data);
console.log("encode: ", encoded);
console.log("decode: ", decoded);
const text = new TextDecoder().decode(decoded)
console.log("text: ", text);-
Notifications
You must be signed in to change notification settings - Fork 0
License
ndtao2020/base64-simd-wasm-vn
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
License
Stars
Watchers
Forks
Packages 0
No packages published