0.0.3 • Published 1 year ago

morse-in-one v0.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

morse-in-one

A npm package for morse code with lots of features. Encode, Decode morse code, export as JSON ot TXT files. And more....

banner

NPM npm GitHub Workflow Status GitHub Workflow Status (with branch) GitHub top language

Deployment Status 🚀 Netlify Status

🥰 View the npm package 👇

Install 🎉

npm install morse-in-one 

Usage 🔥

Morse Code Encode

import { mcConvert } from 'morse-in-one'
console.log(mcConvert('hello world!'))

This function will return the morse code of english words.

Output:

.... . .-.. .-.. --- / .-- --- .-. .-.. -.. -.-.--

Morse Code Decode

import { mcDecode }  from 'morse-in-one';
console.log(mcDecode('.... . .-.. .-.. --- / .-- --- .-. .-.. -.. -.-.--'))

Output:

hello world!

Morse Code Class

import { MorseCode } from 'morse-in-one';
const newObj = new MorseCode('hello');
console.log(newObj.mcCode);

Output:

.... . .-.. .-.. ---

Class Attributes :

Attribute NameDescription
realStrReal input string
mcCodeMorse code of input string
strLenLength of input string
mcLenLength of morse code of input string

Class Methods :

MethodDescription
mcConvert( )Encode Morse Code
mcDecode( )Decode Morse Code
mcJson( )Return Js object of Morse Code
toJson( )Create Json file
toTxt( )Create Txt file
isLegit( )Return Boolean : is it a Legit Morse code

🔢 npm package version and support

VersionSupportRecommended
0.0.0module.export require
0.0.1import export
0.0.2import export
0.0.3import export

For more details check the Docs

❤️ Visit the project GitHub Repository and give a star 🌟

😍 Contributors are warmly welcomed 👫

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago

0.0.0

1 year ago