Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

decode

import { decode } from "https://raw.githubusercontent.com/Fuwn/morse/main/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"
function decode(morse: string, grammar?: Grammar): string;
§
decode(morse: string, grammar?: Grammar): string
[src]

§Parameters

§
morse: string
[src]
§
grammar?: Grammar optional
[src]

§Return Type

§
string
[src]