| Crates.io | konbaato |
| lib.rs | konbaato |
| version | 1.0.0 |
| created_at | 2024-06-04 22:11:24.395683+00 |
| updated_at | 2024-06-04 22:11:24.395683+00 |
| description | Conversions between different Japanese scripts |
| homepage | |
| repository | https://github.com/uncomputable/konbaato |
| max_upload_size | |
| id | 1262136 |
| size | 31,620 |
Convert between different Japanese scripts.
Ready for WASM 🌀
Include the latest version of konbaato in your Cargo.toml.
[dependencies]
konbaato = "1.0"
Use the following command to install nix if you don't already have it.
curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | sh -s -- install
You might need to open a new terminal for the changes to take effect.
Build the WASM package inside the developer shell for deployments.
nix develop .#deploy
just wasm
Import the output in ./pkg in JavaScript, as shown in index.html.
import init, { hira_to_kata } from './pkg/konbaato.js';
async function run() {
await init();
const input = "ひらがな";
const output = hira_to_kata(input);
}
run()
Run CI inside the default developer shell.
nix develop
just check
Deploy a local website.
nix develop
just serve
Run the fuzzer inside the develper shell for fuzzing.
nix develop .#fuzz
just fuzz