# @elonehoo/point-line

> Morse code is a method used in telecommunication to encode text characters as standardized sequences of two different signal durations, called dots and dashes, or dits and dahs.

Latest version **0.0.6** (published 2023-07-22) · MIT license · 0 weekly downloads

## Install

```sh
npm install @elonehoo/point-line
pnpm add @elonehoo/point-line
yarn add @elonehoo/point-line
bun add @elonehoo/point-line
```

## Health

**Score 45/100 (D)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities; high maintenance score; high quality score.

Warnings: low downloads; pre 1.0.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 0.0.6 |
| Published | 2023-07-22 |
| First published | 2022-06-21 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 7.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 6 |
| Author | Elone Hoo |
| Maintainers | elonehoo |

## Links

- npm: https://www.npmjs.com/package/@elonehoo/point-line
- Repository: https://github.com/elonehoo/point-line
- Homepage: https://github.com/elonehoo/point-line#readme
- Issues: https://github.com/elonehoo/point-line/issues
- Funding: https://github.com/sponsors/elonehoo
- npm.io page: https://npm.io/package/@elonehoo/point-line

## Recent versions

- 0.0.6 (latest) — 2023-07-22
- 0.0.5 — 2023-07-05
- 0.0.4 — 2023-04-16
- 0.0.3 — 2022-06-21

## README

<div align="center">
  <img src="./public/logo.svg" width="100px" height="100px" />
</div>

<h1 align="center">@elonehoo/point-line</h1>

## Install

```bash
# npm
npm i @elonehoo/point-line
# yarn
yarn add @elonehoo/point-line
#pnpm
pnpm i @elonehoo/point-line
```

## Usage

```typescript
import {decode ,encode} from '@elonehoo/point-line'
// standart morse
encode('Hello, World!')

// unicode
encode('こんにちは世界！')
encode('你好，世界！')

// option
const option = {
  space: ' ',
  long: '-',
  short: '*'
}
encode('你好，世界！', option)
```

```typescript
import {decode ,encode} from '@elonehoo/point-line'

decode('...././.-../.-../---/--..--/.--/---/.-./.-../-../-.-.--')
```

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