import { encode } from "https://deno.land/x/morse@0.1.1/mod.ts";
Encode a string into Morse code; optionally, with a custom dash.
import { encode } from "https://deno.land/x/morse/mod.ts";
encode("a") // "._"
encode("a", { dash: "-" }) // ".-"
Parameters
optional
grammar: Grammar