Note
we are using morsecode.world's list of morse code symbols. find more here
a morse code translator that is blazing fast and efficient
- blazing fast and efficient
- easy to use
- supports custom symbols
- supports abbreviations
- supports typescript, commonjs and esm
npm install @projectjam/morse-translateimport { textToMorse, morseToText } from '@projectjam/morse-translate';
console.log(textToMorse('hello world'));
console.log(morseToText('.... . .-.. .-.. --- / .-- --- .-. .-.. -..'));const { textToMorse, morseToText } = require('@projectjam/morse-translate');
console.log(textToMorse('hello world')); // to encode
console.log(morseToText('.... . .-.. .-.. ---')); // to decodepull requests are welcome! for major changes, please open an issue first or email us. make sure tests are updated to cover new options.
