Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
@proskomma/hallomai
Advanced tools
Hallomai is a Rust-based library for transforming files between different formats: USFM, USX, and JSON. The library is designed to be compiled to WebAssembly (Wasm) for use in web applications, providing fast and reliable format conversions directly in th
Hallomai is a Rust-based library for transforming files between different formats: USFM, USX, and JSON. The library is designed to be compiled to WebAssembly (Wasm) for use in web applications, providing fast and reliable format conversions directly in the browser.
Hallomai provides functions to transform content from one format to another. The library currently supports three file formats:
The main functionality is exposed via the transform
function, which can be compiled to WebAssembly for integration into web applications. This allows for seamless file format transformations directly in the browser.
The following input and output file formats are supported:
Add the following to your Cargo.toml
:
[dependencies]
hallomai = "0.1.0"
To use Hallomai in a web application, you need to compile it to WebAssembly. Follow the instructions in the Building for WebAssembly section.
use hallomai::transform;
let input_content = String::from("your input content here");
let input_format = String::from("usfm");
let output_format = String::from("json");
let result = transform(input_content, input_format, output_format);
println!("Transformed content: {}", result);
First, compile the library to WebAssembly:
wasm-pack build --target web
Then, use it in your JavaScript application:
import init, { transform } from './path_to_generated_wasm_file';
async function run() {
await init();
const inputContent = `your input content here`;
const result = transform(inputContent, "usfm", "json");
console.log("Transformed content: ", result);
}
run();
To build Hallomai for WebAssembly:
cargo install wasm-pack
wasm-pack build --target web
TODO
Contributions are welcome! Please open an issue or submit a pull request on GitHub.
Hallomai is licensed under the MIT License. See the LICENSE file for more details.
FAQs
Hallomai is a Rust-based library for transforming files between different formats: USFM, USX, and JSON. The library is designed to be compiled to WebAssembly (Wasm) for use in web applications, providing fast and reliable format conversions directly in th
We found that @proskomma/hallomai demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.