Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/morse/mod.ts>decode

🧷 Morse Code Utilities for Deno
Latest
function decode
import { decode } from "https://deno.land/x/morse@0.1.1/mod.ts";

Decode Morse code into a string; optionally, with a custom dash.

import { decode } from "https://deno.land/x/morse/mod.ts";

decode("._")      // "a"
decode(".-", { dash: "-" }) // "a"

Parameters

morse: string
optional
grammar: Grammar

Returns

string