0.5.0 • Published 5 months ago

@projectjam/morse-translate v0.5.0

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

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 { translate } from '@projectjam/morse-translate';

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

for javascript/cjs

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

console.log(translate('hello world')); // to encode
console.log(translate('.... . .-.. .-.. ---')); // 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.

0.5.0

5 months ago