Git Product home page Git Product logo

leet.js's Introduction

leet.js

Convert regular and boring text into 1337 text with this lightweight node.js module.

Example

It converts the usual suspects into 4W350M3 1337 73X7ZORZ, but with the following caveats:

  • Uppercase characters will "bypass" the conversion (HELLO hello becomes HELLO H3110)
  • Any cks are replaced by x for 100% true 1337N355
  • It will add ZORZ or XOR to the end of the end of the text

Installation

Via NPM

To install leet.js simply do:

sudo npm install leet

Add -g to install globally.

If you don't have npm, you can download and install it with this line:

curl http://npmjs.org/install.sh | sh

That's it! Dance!

From GitHub

You can also do it the old-fashioned way:

git clone [email protected]:mathiasnovas/leet.js.git leet

Usage

Using leet.js couldn't be easier! Feed it text and it will spit out 1337 73X7ZORZ!

As a standalone script

Run the leet.js file directly with whatever text you want to convert:

./leet.js 'i want to eat snacks and be leet!'

The result:

I W4N7 70 347 5N4X 4ND B3 1337ZORZ!

As a node.js module

require the module into your script and use the convert function to convert your text to 4W350M3 1337ZORZ!

leet = require('leet');
text = leet.convert('do you know where i left my cheese?');
console.log(text); // D0 Y0U KN0W WH3R3 I 13F7 MY CH3353ZORZ?

As a part of a healthy breakfast

what?


License

I D0N7 C4R3! D0 WH473V3R Y0U W4N7ZORZ.

leet.js's People

Contributors

mathiasnovas avatar

Stargazers

André J avatar Max D avatar Yılmaz Uğurlu avatar Hunter avatar Balthazar Aubard avatar Mohamad Mohebifar avatar Yoshiya Hinosawa avatar Daijiro Wachi avatar Tobias Føyn Føyen avatar  avatar Robert Bost avatar Michael Duane Mooring avatar Michael F avatar Michael Enger avatar

Watchers

Michael Enger avatar James Cloos avatar  avatar  avatar

leet.js's Issues

Caps

If you try to write with capital letters it will not work, it will output it as it is.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.