This is a simple Node.js application for encoding and decoding strings into Leet-Speak.
NOTE: Decoding Leet-Speak is not a straightforward process, and the application is not be able to decode all strings accurately. Only basic level is decoded accurately.
- Clone the repository:
git clone https://github.com/compiled-beetle/Leet-Speak
- Navigate to the project directory:
cd Leet-Speak
- Install dependencies:
npm install
To encode a string into Leet-Speak, run:
npm start -- -l <level> -e -s "<input_string>"
To decode a Leet-Speak string, run:
npm start -- -l <level> -d -s "<leet_string>"
Replace <level>
with one of the following options: basic
, intermediate
, advanced
, or expert
.
Encoding:
npm start -- -l basic -e -s "hello world"
Decoding:
npm start -- -l basic -d -s "h3ll0 w0r1d"
-l, --level <level>
: Leet-Speak complexity level (basic
,intermediate
,advanced
, orexpert
)-e, --encode
: Encode the input string-d, --decode
: Decode the input string-s, --string <string>
: Input string to encode or decode-h, --help
: Display help for command
This project is licensed under the MIT License - see the LICENSE file for details.