felfel
A Rust library and CLI tool for Farsi compound noun generation.
This is a little piece of code that generates a compound names in Farsi. Useful for naming things or anonymous visitors, or perhaps just for fun.
Usage
felfel is available both as a library as well as a little CLI tool.
Use as a CLI tool
# Install it
# Use it in command line
Use as a library
Add this to your Cargo.toml
:
[]
= 0.1
Then invoke the gen
function:
use felfel;
Use as a WebAssembly package
felfel is compiled to Wasm and published to npm as a
JavaScript package. First add it to your package.json
:
# Add it to your program
Then invoke the gen
function:
import * as felfel from "felfel";
console.log;
You can also use the output of wasm-pack build --target no-modules
and upload it somewhere.
Development
The only notable command worth mentioning is the generation of npm package:
# install wasm-pack
# build the npm package
# publish the package
License
felfel is distributed under MIT license.