Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/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.
https://github.com/elonehoo/point-line
moss typescript vite
Last synced: 10 days ago
JSON representation
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.
- Host: GitHub
- URL: https://github.com/elonehoo/point-line
- Owner: elonehoo
- License: mit
- Created: 2022-06-20T13:12:04.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-04-15T04:28:31.000Z (7 months ago)
- Last Synced: 2024-04-17T06:53:33.992Z (7 months ago)
- Topics: moss, typescript, vite
- Language: TypeScript
- Homepage: https://point-line.elonehoo.xyz
- Size: 362 KB
- Stars: 6
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
@elonehoo/point-line
## 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('...././.-../.-../---/--..--/.--/---/.-./.-../-../-.-.--')
```