Skip to content

project-jam/morse-translate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

npm

Note

we are using morsecode.world's list of morse code symbols. find more here

@projectjam/morse-translate

a morse code translator that is blazing fast and efficient

features

  • blazing fast and efficient
  • easy to use
  • supports custom symbols
  • supports abbreviations
  • supports typescript, commonjs and esm

installation

npm install @projectjam/morse-translate

usage

for typescript/esm

import { textToMorse, morseToText } from '@projectjam/morse-translate';

console.log(textToMorse('hello world'));
console.log(morseToText('.... . .-.. .-.. --- / .-- --- .-. .-.. -..'));

for javascript/cjs

const { textToMorse, morseToText } = require('@projectjam/morse-translate');

console.log(textToMorse('hello world')); // to encode
console.log(morseToText('.... . .-.. .-.. ---')); // to decode

contributing

pull requests are welcome! for major changes, please open an issue first or email us. make sure tests are updated to cover new options.

About

a morse code encoder & decoder

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published