# morse-beep

> A simple text to Morse Code player for the modern web

Latest version **1.1.0** (published 2015-04-14) · MIT license · 0 weekly downloads

## Install

```sh
npm install morse-beep
pnpm add morse-beep
yarn add morse-beep
bun add morse-beep
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.0 |
| Published | 2015-04-14 |
| First published | 2014-11-16 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Matthew Chase Whittemore |
| Maintainers | mcwhittemore |
| Keywords | morse, code, audioContext |

## Links

- npm: https://www.npmjs.com/package/morse-beep
- npm.io page: https://npm.io/package/morse-beep

## Alternatives

- [flatbuffers](https://npm.io/package/flatbuffers.md) — 6.0M weekly downloads
- [jwt-simple](https://npm.io/package/jwt-simple.md) — 259.5K weekly downloads
- [@exodus/patch-broken-hermes-typed-arrays](https://npm.io/package/@exodus/patch-broken-hermes-typed-arrays.md) — 28.5K weekly downloads
- [@native-to-anchor/buffer-layout](https://npm.io/package/@native-to-anchor/buffer-layout.md) — 12.2K weekly downloads
- [binary-parser-encoder](https://npm.io/package/binary-parser-encoder.md) — 5.3K weekly downloads

## Recent versions

- 1.1.0 (latest) — 2015-04-14
- 1.0.4 — 2014-11-17
- 1.0.3 — 2014-11-17
- 1.0.2 — 2014-11-16
- 1.0.1 — 2014-11-16
- 1.0.0 — 2014-11-16

## README

# Morse Beep

A simple text to Morse Code player for the modern web

## Example

### index.html

```html
<script src="./compiled.js"></script>
```

### example.js (compiled.js is made with browserify)

```js
var MorseBeep = require("morse-beep");
var beeper = MorseBeep();
beeper("hello world", function(){
	console.log("done");
});
```

## API

### MorseBeep(opts)

Creates a new beeper with the provided options. You should really make sure you only have one active beeper at a time. Maybe in the future I'll add support for that.

**options**

* unit: the length of a sigle `dit`
* gap: the length between any two `dits` or `dahs`

### beeper(msg, cb)

a beeper takes a string and converts it into beeps. When the sequence is finished the callback is called.

* msg: a string. Only 0-9, space, a-z, and A-Z will be beeped. All other charters will emit events but will not effect the played sounds.

### beeper.on(event, cb)

Beeper emits events through out the beeping processes.

* start-letter: emited just before each letter is played
* end-letter: emitted when each letter is finished
* start-beep: emitted when a beep starts
* end-beep: emitted whena  beed ends

---
_Source: https://npm.io/package/morse-beep · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
