1.0.1 • Published 9 months ago

learn-morse-code v1.0.1

Weekly downloads
-
License
MIT
Repository
-
Last release
9 months ago

CW Lib

CW Lib is a TypeScript library for generating Morse code from text. It allows you to convert regular text into Morse code audio signals.

Installation

To install the library, run:

npm install learn-morse-code

Usage

Here is a simple example of how to use the CW Lib in your application:

import { CwPlayer } from 'learn-morse-code';

const player = new CwPlayer();
player.play("Hello World"); // Play the Morse code for "Hello World"

API

CwPlayer

  • constructor(frequency: number, dotDuration: number): Initializes the player with a specific frequency and dot duration.
  • play(text: string): Plays the Morse code for the given text.

License

This project is licensed under the MIT License.

1.0.1

9 months ago

1.0.0-SNAPSHOT

9 months ago

1.0.0

9 months ago