hustcc / Xmorse
Licence: mit
π ~1.5Kb morse code library for all. δΈδΈͺζ―ζ Unicode δΈζζ©ζ―ε―η ηΌη η Javascript εΊγ
Stars: β 266
Programming Languages
javascript
184084 projects - #8 most used programming language
typescript
32286 projects
Projects that are alternatives of or similar to Xmorse
DjvuNet
DjvuNet is a cross platform fully managed .NET library for working with Djvu documents which can run on Linux, macOS and Windows. Library has been written in C# and targets .NET Core v3.0 and .NET Standard v2.1 or later. We intend to provide DjVu document processing capabilities on par with DjVuLibre reference library (or even better).
Stars: β 54 (-79.7%)
Mutual labels: encoding, decoding
go-fixedwidth
Encoding and decoding for fixed-width formatted data
Stars: β 64 (-75.94%)
Mutual labels: encoding, decoding
unihandecode
unihandecode is a transliteration library to convert all characters/words in Unicode into ASCII alphabet that aware with Language preference priorities
Stars: β 71 (-73.31%)
Mutual labels: unicode, chinese
BeFoR64
BeFoR64, Base64 encoding/decoding library for FoRtran poor men
Stars: β 17 (-93.61%)
Mutual labels: encoding, decoding
go-webp
Simple and fast webp library for golang
Stars: β 91 (-65.79%)
Mutual labels: encoding, decoding
cpp-bencoding
A C++ bencoding library supporting both decoding and encoding.
Stars: β 20 (-92.48%)
Mutual labels: encoding, decoding
multibase
multi base encoding/decoding utility
Stars: β 15 (-94.36%)
Mutual labels: encoding, decoding
avro ex
An Avro Library that emphasizes testability and ease of use.
Stars: β 47 (-82.33%)
Mutual labels: encoding, decoding
urdu-characters
π Complete collection of Urdu language characters & unicode code points.
Stars: β 24 (-90.98%)
Mutual labels: unicode, encoding
vorbis aotuv
"aoTuV" is library for encoding and decoding of OggVorbis
Stars: β 35 (-86.84%)
Mutual labels: encoding, decoding
scure-base
Secure, audited & 0-deps implementation of bech32, base64, base32, base16 & base58
Stars: β 27 (-89.85%)
Mutual labels: encoding, decoding
morton-nd
A header-only compile-time Morton encoding / decoding library for N dimensions.
Stars: β 78 (-70.68%)
Mutual labels: encoding, decoding
d3coder
Chrome extension for encoding/decoding and hashing text on websites
Stars: β 26 (-90.23%)
Mutual labels: encoding, decoding
sms
A Go library for encoding and decoding SMSs
Stars: β 37 (-86.09%)
Mutual labels: encoding, decoding
universal-base64
Small universal base64 functions for node.js and browsers
Stars: β 25 (-90.6%)
Mutual labels: encoding, decoding
ciphr
CLI crypto swiss-army knife for performing and composing encoding, decoding, encryption, decryption, hashing, and other various cryptographic operations on streams of data from the command line; mostly intended for ad hoc, infosec-related uses.
Stars: β 100 (-62.41%)
Mutual labels: encoding, decoding
js-multibase
JavaScript implementation of the multibase specification
Stars: β 22 (-91.73%)
Mutual labels: encoding, decoding
sirdez
Glorious Binary Serialization and Deserialization for TypeScript.
Stars: β 20 (-92.48%)
Mutual labels: encoding, decoding
velvet-video
Java library for encoding / decoding / muxing / demuxing video and audio in various formats
Stars: β 32 (-87.97%)
Mutual labels: encoding, decoding
Xmorse
Xmorse is a pure javascript(~1.5kb) library for encoding / decoding morse code messages, unicode supported.
δΈζθ―΄ζζζ‘£ | Online DEMO ε°ε
1. Install
npm install xmorse
Or download dist/xmorse.min.js
source fileγ
2. Import It
-
Script
tag.
<script type="text/javascript" src="dist/xmorse.min.js"></script>
-
ES6
style.
import { decode, encode } from 'xmorse';
3. Usage & API
There is only 2 API named encode
, decode
. For encode(msg, [option])
, example:
import { decode, encode } from 'xmorse';
// standart morse
encode('Hello, Xmorse!');
// unicode
encode('γ³γ³γγγ, γ»γ«γ€!');
encode('θΆθΏιΏεοΌθ΅°εδΈη');
// option
const option = {
space: ' ',
long: '-',
short: '*'
};
encode('θΆθΏιΏεοΌθ΅°εδΈη', option);
For decode(morse, [option])
, example:
import { decode, encode } from 'xmorse';
decode('../.-../---/...-/./-.--/---/..-/-/---/---/--...-....-...-/-..---..-.-----/---..-...--...-/-..----.--.....');
// option
const option = {
space: ' ',
long: '-',
short: '*'
};
decode('*-** --- ***- *', option);
4. Test
$npm install
$npm test
5. LICENSE
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].