base64 package icon
etoal/base64

wasi

Public
wasmer run etoal/base64

Base64 encoder/decoder in WASM

A command line tool of encoding/decoding string to/from Base64 string. The source is written in WebAssembly text format (wat) for my learning purpose.

How to use

This package is now available in WebAssembly Package Manager (WAPM). If you have wasmer CLI installed on your machine, you can run the command like:

wasmer run etoal/base64 -e encode "Lorem ipsum"
# TG9yZW0gaXBzdW0=

This package provides two commands or entrypoints that can be specified with the -e option.

  • encode
  • decode

Or, you can execute the commands by cloning the repository and directly specifying the wasm file:

wasmer b64decode.wasm SGVsbG8gd29ybGQh
# Hello world!

Caveats

  • This project is nothing more than a beginner's practice. Don't use these commands in productions.
  • The commands accept only the first argment as their input and the following arguments are discarded. To pass a whitespace-separated string as input, you should quote it.
  • Since these WASM packages reserve 1 page (64KB) of linear memory on initialization, a too-long string of input is not tested and may cause unexpected result.

A command line tool of encoding/decoding string to/from Base64 string


Github
More packages
Common string utils
Frank Moreno
Frank Moreno
Frank Moreno
Frank Moreno
Library for computing Levenshtein and Demerau-Levenshtein distances of strings and list of strings
Ezeoke Godswill
Ezeoke Godswill
Ezeoke Godswill
Ezeoke Godswill
It takes the utf8 strings as input and return 0, 1, 2 based on the utf8 string length
Parse a string tensor into a tensor of numeric values.
A simple library for padding strings with a specified character such that they are at least the specified length.
cttm avatar
cttm
cttm avatar
cttm
Find motifs using Gibbs Sampler, Median String, and Randomized Motif Search algorithms in a fasta formatted file of reads Refer to the README to understand the input data
Nithish Narasimman
Nithish Narasimman
Nithish Narasimman
Nithish Narasimman
Find motifs using Gibbs Sampler, Median String, and Randomized Motif Search algorithms in a fasta formatted file of reads Refer to the README to understand the input data

Making software universally accessible