@isfegu/dothyphen-wasm
v1.0.0
Published
A WebAssembly wrapper of DotHyphen, a simple ASCII to Morse translator.
Downloads
21
Readme
DotHyphen WebAssembly
DotHyphen WebAssembly is a WebAssembly wrapper of DotHyphen ready to be used as npm package.
DotHyphen is a basic ASCII to Morse and vice versa translator developed in Rust.
Usage
import * as dothyphen from "@isfegu/dothyphen-wasm";
console.log(dothyphen.to_morse("Hello World")); // Should print: .... . .-.. .-.. --- / .-- --- .-. .-.. -..
console.log(dothyphen.to_ascii(".... . .-.. .-.. --- / .-- --- .-. .-.. -..")); // Should print: hello world
Contributing
DotHyphen WebAssembly is a part of Samuel, a project focused on learning how to use Rust to build a crate that can be used from other languages and multiple environments.
Please read the contributing guidelines and the contributing documentation to contribute to DotHyphen WebAssembly.
Moreover, you can use the Samuel Github Discussions.
All help will be appreciated.