0.5.0 • Published 5 months ago
@projectjam/morse-translate v0.5.0
!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-translateusage
for typescript/esm
import { translate } from '@projectjam/morse-translate';
console.log(translate('hello world')); // to encode
console.log(translate('.... . .-.. .-.. ---')); // to decodefor javascript/cjs
const { translate } = require('@projectjam/morse-translate');
console.log(translate('hello world')); // to encode
console.log(translate('.... . .-.. .-.. ---')); // to decodecontributing
pull requests are welcome! for major changes, please open an issue first or email us. make sure tests are updated to cover new options.
0.5.0
5 months ago
