Command Palette

Search for a command to run...

syrusakbary/coreutils

wasi

Public
wasmer run syrusakbary/coreutils

coreutils

Core utils for WebAssembly and WASI

wapm install coreutils

Original Source: https://github.com/uutils/coreutils

Modifications: We made some changes to adapt the codebase to the WASI interface.

Running

The following commands are available:

ls
cat
echo
mv
env
mkdir
basename
dirname
base32
base64
sum
printf
wc
pwd

Building

The following script will build the binary:

cargo build --features "ls cat echo mv env mkdir basename dirname base64 base32 sum printf wc pwd" --no-default-features --target wasm32-wasi --release

Cross-platform WASI rewrite of the GNU coreutils


Github
More packages
GNU coreutils compiled to WebAssembly with WASIX
Patched uutils coreutils for WASIX (fixes pwd canonicalize panic)
An example of using spawn in wasix
Jacob Hummer