csv_to_usv
as Extism plugin
Check out the Wasm code at: https://modsurfer.dylibso.com/module?hash=a28e7322a6fde92cc27344584b5e86c211dbd5a345fe6ec95f1389733c325541
-
Install an Extism Host SDK in 15+ languages: https://github.com/extism/extism
-
Load the
csv_to_usv
plugin and callcsv_to_usv
export function:
// Simple example to run this in your browser! But will work in Go, PHP, Ruby, Java, Python, etc...
const extism = await import("https://esm.sh/@extism/extism");
const plugin = await extism.createPlugin(
"https://cdn.modsurfer.dylibso.com/api/v1/module/a28e7322a6fde92cc27344584b5e86c211dbd5a345fe6ec95f1389733c325541.wasm",
{ useWasi: false }
);
let out = await plugin.call("csv_to_usv", "a,b,c");
console.log(out.text());
-
???
-
Profit