lunicode-creepify

    1.0.1 • Public • Published

    Lunicode Creepify

    forthebadge forthebadge

    Provides a creepy effect using diacritical marks and stacking them randomly. This is also called the zalgo effect I think.

    Usage

    Encode

    Creepify.encode(string) stacks a moderate amount of diacritical marks on the string. So it turns this sentence: "They had spent a year in France, for no particular reason, and then drifted here and there unrestfully wherever people played polo and were rich together".

    Into Ţ̸̝̺̏̎̕ḩ̴̰̺̦̱̰̍̈́͜e̵͍̞̩̭̝̭̋͐͌͆̏y̴͚͙͓͙͖͖͈͉̞̥̮̰͎̙̅̄͗́͂̀͆̍̐̀ ̷̙̬͖̤̖̞́̈͊̑͐͗̒͘h̵̻̺͍̥̫̺̬͆̏̾͌̆̓́͌̏̚a̵͇͚̫̮͍̱̻͓̮̬̪̖̭͍͛̊̿͐̌̓d̷̯̺̱͍̜̻͈̦͍̥͖̭̟̭̾̒ ̶̛̫̏͌̿̐̆͝ş̷̮̫̟͍̞̱̻͉̠̣̥͚̝̀̎p̵̣̂̈́̚̚ê̵̯̗͍̝̼̜̘̩̺̓̎́͛̓̐͜n̴̨̡̯̠̪̤̱͎̝̰͈̹̼͈̈̌͌͛͋̃͗̕̚ẗ̸̙̠͔̹̖̙̩̫͙̭̠͚͚̯̮́ ̵̛͈͒̈́̀̉̇͛͐́͋͒̏̚͝ä̸͔̰͈̪͖͚́͌̋̑̓̋̎̈́͂̄̊͑̉͗ ̵̡̧̥̥̠̳̩̙̘̋̎̽̄͛͘͠ẏ̸̤̥̰͕͔̀̽̈̀̓̂̏͘e̸͖͈̭̘̠̳̮̹̥̭̣̰̩͓̠̿͌͌͗͂̕̚͝a̷͎̣̤͊̇̏̅̐̉͆͊̃̎͝r̷̫̺̼̃ ̷̗́̉̾̅͑̄̚͝ḯ̶̻̺̈́̋̓͛n̶̘͚̥̪̱̩̬͚͕̑͋͋̃ ̸̧̡̨̡̤̗̜̀̂͆̑̿̾̎͋̀̀̏̚͘̚F̴̨̗̮̖̘̩́̂̀̏̃̽͊̂͗͝͠r̵͈̪̯͔̼̗͚̓̈́͒͐̆̓̈͊̅̆̀̈̕͜͝ą̶͍̬̪̖͇͖̤̝̩̲̤͕̼̑̌́̆́̂̓́͜͝n̷̥̺̭͍͈̣͇̰͒͌̏̈́̈̇̇̍̅́͘͝ć̷̩̮̗̰͎͉̫͈̙̝̯͔̝̮̌̈́̃͆̓ͅẹ̵̠̣̮͒͌͊̑̃̔͊͗͆̒̏̉,̴̛͕̱̘͔͖̬̟͔̰̰͔̦͕͆̎͝ ̸̡̢͍̠͇̙̫͖̭̩̮̗̮̈́͒̿̓̉͂͊̉̀̄͝͝f̴̡͚̠͖͇͈̳͐ͅơ̴̢̧̢̙̩̪̔̉͆̚͠r̸̡̪̯̗͇̥̤̗̠͎̗̙̎̈́͑̎͊͜ͅ ̸̨̡͉̞̤̖͈̹̫̼̅̓̋͂̀̅̚n̶̲͚̱̭̱̓̎͆̔͆͗̕o̸͕̟͚̩̘̻͔̹̮̭̪̰̟̅͘̕ͅ ̵̘͇̦̗̳̆̍̽͑̈͠͠ͅp̴̢̛̪̮̠̹̘̜͔̦̤͇̘̊̉̀͊̊̚̚̕a̶̢̡̫̙̭̣̘͂̽̄̎́ṟ̶̹̼̖͖̣͚̭̘͇̑͝t̵̡͙͎̰͓̭̫͙͇̹̗̓̀̒͌̓̾͠i̴̡̪͎̝͙̻̲̇̈́̀͑̋͂c̴̡̨̙̱͉̮̩̬̞͇͊̋̈́̕ͅų̸̨͉͉̻͚͍̗̤̞̬͔̬̲͂͐̂͊̑́̄l̴͔̼͙̞̥̝͈̉̉̍̕͘a̴͉͙͉̟̤̤̱͙̭̠̼̋͒͜r̸̮̂̃̈́͠͠ ̴͍̲̯͍̙̝͉́̿͛̇r̵̨͙̯͙͈̰̘͍̳̓͌̔͊͜ė̶̡̗̃̓͂͊̋̉̽͗̔̾͘ậ̶͖̼̩̓͆̈̈́̀̾̓̒́̾̚͜ͅş̷͔̻̣̗̺̟̜͖͖̗̙͍͋͊̀̄͜͜ǒ̸͍̖̫̮͖̣͎͊̓̚ͅñ̴̗̈̈̊͋͑,̴̛͕̺̤̖͖̦̇̈́̅̂ ̶̡̧̠̥̻͉͓̮̗̈́̔͂̆̽̔a̶̛̪̺̬̪̜͍̭̹͍̟̗͒͆̇̑̍̾n̷̥̠̝͂͆̏̓̇͗̀͠͝d̷̢̛͎̳̘̈́͑̈́̄̀͊͜͠ͅ ̵̡̗̰͚̣̼̰̏̽̃̀̅̍̿͝t̵̯̫̯̗̳̬͋̋̾̉̇̚̚͝h̵̢͒͒̅̑͛͗̽͊̃̚͠͝ͅė̴̤̜̱͈͓̦̌͋̉͊̈̓̆̆̇̋̔͌͝n̴͎̉̎̍͂́͊̂̿̉́̊́̽͘͝ ̸̧̙͓̬͈̮̖̖̘͔̰̝̤̞͈́̽́̀̑͐͋̕̚̚͝d̶͖̤͉̣͍͎͚͚͑̑͑̈́̔́̕r̴̖̙͇̬̳͇̿̓̒͛ͅi̷̥̖̩͓͔̲͚̻̭͎͓̦̞̾̊̄̌̿̑̌̈́̇̌̕͠͝ͅf̴̨͚̲̻̠̫̥̤̮̙̤͈̣̦͐̏̌͑̚̕͘ͅt̴̰͙̠̜̝̪̖̮͉̉́e̷̛̟̲̲̜͍̮̝͍͑̂̈͌͆͒͗̒̌̾̿̒͘d̵̡̨̮͖̟̦͓̱̾̃̂̾̓̋͑́̓̀̆̈͌͝ͅ ̴̜̰̳̬͔̗͋̒̌̆̆͂͘͝h̶̢̨͖̮̱̹͙̣́̐̆͂͆́̈́̈́̀̍͠e̷̡̼̪͈͎͚͔̩̜̬̺̼͙͚̎̃̀̉͋̄̔̀͐̾̋̆̕̚ͅȓ̷̛̙̠̹̠̝̮̱̑̾͐̓͐̓̅͘͝e̵͈̮̞̹͖͕͛͑̐̅ ̷̡̨̡͎͚̪̲̜̹͑̓̎̊ͅa̶̛̛͎͎̮̘͐̓̋̆̒̑͌̔̑͆͘͝ṇ̶̨̧̧͙͎̹̫̻̗̟̙̗͊̒ḏ̶̡͕͓̪͎̣̱͈̱̻̩͂͜͜͝ͅ ̴̨̟̩̥̞̳͂̕͜t̸̡̧͍̬͎̫̖̱̫͙̬͚̩̤̎̏͆̀̆̈́́̓͆́͗͂̕̚͝h̸̟̲̞̦̺̆̓̈̋ͅẹ̶͓̟͒̾͛̋͑̕͝ŗ̷̛̹̹̫̦͖͔̹̬͐̀̊̆̈͝ę̸̪̫͚̬̪̩̦̟̠̽̿̂̇̒́͊̍̕͘͜ͅ ̵̹͈̱̄͒̿̊̊̋̈̊͒͘͜͠͝u̴̢̺̭̯͉͇̳̎̈́̔̒̈́̄͛̓͝͠ͅň̸̛̛̗͍͈̦̠̝̭̪̣̗̗̠͚̜̆̒͋́̈́̊͐̉̕̚͝ͅr̴͉͍̖͐̅̍͋́̿͑e̸̹̲̳̮̙̻͋̐s̷̢̻̠̰͊̽̈̀͑̍̿̔̓̑̕͝t̸̪͓̘̋̉͌̂̄́́̈̈́͂̋̋̂f̸̢̜̙̻̞͓͍͙͉͖́̊̒̐̄̏̀̉̂̒͊̉ų̸̠͍̼̼̻͉̐̊̓̽̇̓̎̊̆̍̿̍̿͛͂ͅļ̷̿̾̋͌l̶̛͚͉̭̬͈͖͓̰̙̣̱̞̱̄͒̓̍͋͋̌̉̚͘y̵̢̧̛͈͙̭̦͒̑̑͂͆̔͑̏͊͝ ̸̧̳͉̣̤͎͈͚͈̬̜͙̣̹̅́̉́ͅw̵̢̳͈͇̥̯̻̻͌͌̚h̵̥̭̭̖͔͔̋ë̵̛̛̬͓̦́̾̄̐̓̓̾̇̿r̶̡̼͖̳͚͍͖͙̰̦̥̞̭̯͗͆͊̃́̊̚ͅȩ̷̨̠̖̖͔͇̥̜̤̙̝̔̊̅v̸̯̩̠̳̗̰̞̰̀͊̈́̓̈͌̎̈̇̌͗́͗̚e̸̦̊r̸̮͉̳̖̝͔̬͔̤̘̲͇̀ ̵̳̲͓̦͍͈͓̻̥̭̮̤̺͐͌̃͂́̔͘͠p̷̡̲̠̯̭̖̝̪̺̈̑̕͜ȩ̸̻̖̯̩͖̉̀o̴̝̟̯̜͎͔̩͇̓̋p̴̧̡̢̱̝̮̦̳͇͕̈̏̄̓̎̏̀͜l̵͇͍̮̭̟̰̝̙̝͔̗̙̱̇̾̀́ͅe̸̞͙̦̗̦̳͎͕͎͊͜ ̷̧̨͇̥̘̣̑p̶͔̖̠̪̠͗̽͝ļ̶̬̙̱̣̳̯̝̺̼̠͉̗̜̬̂̽͂̏̒͐̈́ȁ̶̜̰͇̤͍̥̳̱̄̌̈́̅͂͝y̶̜̼̗͕͔͈͓͎̱̼̰̪̟͎̽̈́ͅȩ̴̤̻̳̟̖͓̺̣̘̈́̏̽̀͝d̵̛͎̠̋̃̀ ̷̲̬̞͓̄̒͋͆̿̽͑̊̋̋̓̃͌̚͝p̶̣̗̬̖͙͎̻̲̏̋́̅̅̾̍͊̒̈͑̔̊͝ͅơ̵̢̡̟͚̫̹̣̖̹̪͔̊̈́̍̿̌̄͗̒͘̕͘̕͠l̴͍͉̗͙͚̒̂͛̒̆̔̕̚ơ̷̞̯͛̿̀̔̇̀ ̶͉̮̥̬̪̭͈͖̹̥͔̗̒̍͗̕͝a̷̛͎̪̙͈̜̐͊͋̽̔͋͊̃͠n̵̪͈͉̠̻̫̼̩͖̣̝̱̬̼̑̂͐͂̈̀̊͂͆͜d̴̨̼̟̞̳̥͍̟̲͙̜̮̻̈́̈͑̈́̕ ̷͔̭̋̿̒̈́̿̃̈̌̄̆͗ͅw̸̛̥̘͚͖̦̦̣̭̗̰͛͒̅͂ͅͅȩ̸̯̝̻̻́̿̔͂͗̋͐̋͘͜͠r̵̢̘̩̪͍̱̫̪̱͕̲̒͛̅͑̚ė̶̛͉͔̱͕̞͒̍̄͂̇̊͋̄ ̶͉̫͚̣̺̣̫̝̌͆͜͠r̷̻̀͋̒̄̈͛̐̊̊̌̉͒͌͝ǐ̵̊̈́͘͜c̴̻̼̱̻͍̦̰͌̌̿̄͒̔̋͌͘͠͠͝h̴͈͍͉̏̊͊̾̉̕͝ ̸̱̏̑͌̏̒̄̅̚͝t̵͔̳͚͔͔͠ȍ̷̼̾͌̀̓͒̓́̊̀̂͌̕͘̕g̷̻̻̰̣̘̩̀ḙ̶̦͉͎̝̰̖̊̾̅͐̽̇͗͌̄͘ţ̶̩̘͈͓̝͓͉̲͔͓͕̦̖͛̾̌̈́͛̔͛̃͛̊̅̈́̏̚͜͠h̴͈̅͆̂̎̒̑̒̑͗̅͛̈́e̵̬̱̹̞̗̅̈́̊̂͠͝ŗ̶̲͇̹͙͍̙̻̈́͛͊͌́̉́̒̈͑

    Decode

    creepify.decode(string) removes all diacritical marks in a certain range from the string. Even if they were used for a legitimate reason.

    Fair Warning

    This effect is sometimes destructive. It might brake text editors, forms or similar and might render them unusable until those strings are removed. For example, I would not recommend using them in the Chrome Dev Tools. So remember:

    "W̸̛̫͎̣̙̐͌̐̒͜͝i̸̡̘̙̺̠̱͚̋͒̅̇̾̊͊́͆͘̚͠t̷̡̎̎̔͋͂h̸̨̛̛̳̆̅̈̆̀̾̇̓̓͊̒͝ ̷͕̖̪̑͋̒̈̐̉́͝Û̶̼̯̯͈̫̭̱̀̚n̷̛̪͂̓̽̌̚ï̷̳̥̉̊̽͊̅̊́͊̎̏̚c̸̡̬̤͕̞̝̱̝͓̥̯͕͙̹͗͌́̑̒̀́̈́̒́͒͝͝ơ̷̞͓̩̫͉̹͚͑́̉̇̑͆́̈̚̚͝͠͝d̴̛̲͛̄̎͠͠͝ẻ̷̗̺͎̝͎̅͐̍̇̂̆̍͐̔̒̋̑̕͜ ̸̨̯͉̻̫̠̯͑̕Ṕ̶̧̰̼̰̤̥̜̥̐̌̄̍̿̔̒̀͌̕͝ơ̸͚̏͋̍̋̇̕̚w̶̛̻͑̇̅̈́̀͘ę̴̝̤̠̘͖̺̦̌̈́̽̒̽r̴̺̈́͝,̶̨̹̤̺͖͚̥̺̝̰́̇̎ͅ ̷͓̑͊̽̈́̌͘c̷̡̨̛̭͔̻̘̼̗̳̰̦̞̞̺͇̅̓͐͒̋͒̀̊̅͑̈͌̽o̷̡̘͎̜̳̪͗͋̓͊͐̽̾̀̓͜͝m̶̧̖̟̭͙͖̯̼̮̼̰̀̄̈́̐̋͂̈́͜͝ͅͅę̶̡͙̙̙͎̙̙̥̘͔͈̠̍͊̓ś̴͙͓͖̲͎̦͈̼̬͓́͜ͅ ̵̢̧̛̬̝̗̞̟͎͕͑̒̈́̒̒̈́̅̽̚͝ͅͅu̴͖͇͉̥̦̱̲͐̓̌̓́̏͂́̇̓̋̚̕͝n̴̨̖̘̲̠͍͙̜̖̰̎͆̈́̈̅̾͒͒̔͆͠i̶͉͉͕͓͖̞̺͓̖̭̗̣͇̋̋̒̒̆͌̀͠c̸̛̛̝͚̫̟̯̝͒͐̐͐ͅö̵̢͇͈̠̲͉̗̪̹̘͔̦̥͓́͗̈̌̈́̕͝ḑ̴̛͙̯̓̀̽̒̑́̐ę̶̤̠͙̈̿̏͂̐͆̿̓̚ ̵̡̩͙̺͔͎̣̝̜̲̞͕̆̀̀͑̏̒͂̂͗̈́͌̋͝ͅŗ̵̛̤̻̉͒̿̍̂̽̃͛́e̸̡̗̺̞̬̝̙̙̘̔̈͌̎͂̾͌̚͠͝s̷̨̘̜̙̬̠̲͖͙̹̹̣͔̑̃̀̎̑̅͌̇͛͘ͅp̴̡̛̛̳̠̮̙̤͚͕͎͎̈̓̇͂̔̕͠͠ͅò̶̘͍̜̭̻͍̣n̷̫͑̈̕s̷̰̲̭͈̘̓̿̾̑͂̓͘̕͝î̴͉̭͒b̵̭͆́̇̂̆̐̑̈́̈́̒̌̀͝͠i̸̧̫̗̒͋̊̃̌̇͝l̶̯̣̞̮̰̩̲̖̪̠̍͂̇̍͂͛̆͌̈͑ĩ̸̢̨̨̪̹̃͗͌̓͐̽̂̽͌͋̚͝t̸͇͓͚̭͉̹̗̱͇̩͊̔̂͊͐̎̽̑̉͜ͅỵ̷͙̳̥͒̽̊ͅ"

    Install

    npm i lunicode-creepify

    DownloadsWeekly Downloads

    8

    Version

    1.0.1

    License

    MIT

    Last publish

    Collaborators

    • avatar