@h.yoshida/zalgonode
TypeScript icon, indicating that this package has built-in type declarations

0.2.0 • Public • Published

zalgonode


pipeline status coverage report

about

z̘̯̙̈̑ã̺̇̚̚ḽ̷̱̦̽g̰̉̄̽̏ȫ̢̞̙n̖̬̊̒̽o̬̘̠̫̒d̡̨̟̺̫ḙ̬̠̅̒ is a text glitch tool.

Getting Started

installation

Package Registry - h.yoshida / zalgonode - GitLab

$ echo @hirokiyoshida837:registry=https://gitlab.com/api/v4/packages/npm/ >> .npmrc
$ npm i @hirokiyoshida837/zalgonode

usage

You can use glitcher like below code.

import {Glitcher} from "glitcher";

const originalString = 'this is sample string'

const glitched = new Glitcher().glitch('this is sample string');

// output sample t̷̸̏̉̚ȟ̵̠̟̲i̫̜̘̙̊s̓̽̃̍̚ ̢̭̳̈̃ĭ̮̼̥̙s̜̥̪̺̓ ̸̭̎̊̇s̪̱̉̚̚a̶̛̮̮̭m̠̜̘̑̈p̤̮̫̪̔l̻̗̓̊̎ę̺̤̑̇ ̶̝̬̰̙ŝ̯̘̑̇t̶̳̓̋̇r̷̛̠̤̐i̴̶̟̺̍ṅ̡̯̮̜ǧ̻̪̗̞
console.log(glitched);

glitch amount

You can specify the amount of glitching scale. default is 5.

// t̎h̔i̍s̟ ̅i̭s̆ ̈s̸a̪ṃp̕ľe̝ ̂s̵t̨r̠i̹n̗g̏
console.log(new Glitcher(1).glitch('this is sample string', 1));

// ţ̜̥̹̖̺̤̘̂̊h̵̡̳̦̝̎̊̊̏̃i̢̨̧̬̮̣̟̋̐̐s̸̛̭̭̍̌̏̄̅̕ ̸̣̭̹̹̻̒̏̊̓i̬̱̫̣̼̽̽̂̅̐ş̵̛̫̞̥̔̔̄̒ ̧̘̟̻̤̤̮̼̒̒s̩̮̬̋̊̉̎̉̐̌ą̶̵̢̘́̎̽̇̓m̴̞̖̖̜̫̘̩̒̒p̴̢̱̼̱̪̻̋̽̚l̴̠̰̦̘̙̘̞̂̽e̼̥̝̮̲̪̻̽̂̍ ̦̗̦̌̅̄̈́̔̕s̷̯̟̳̲̞̣̈̉̂ť̵̻̪̠̫̣̈̉̕r̢̹̯̼̳̻̔̊̊̕ĩ̷̢̢̨̧̮̒̑̑n̡̜̣̐̽̃̈̈̎̑g̬̬̫̔̄̌̑́̋́
console.log(new Glitcher(10).glitch('this is sample string', 1));

glitch type

You can choose the type of glitch effect, top, bottom, and middle .

const glitcher = new Glitcher(5)
    .doTopSideGlitch(true)
    .doBottomSideGlitch(false)
    .doMiddleSideGlitch(false);

//  z̈̉̓̃̀a̓̃̎̇̕ĺ̇̀̆̐ġ̅̍̆̍ö́̒̄̚n̐̈̋̀̌ȏ̃̔̔̄d̓̀̎̍̏ḗ̋̍̕
glitcher.glitch('zalgonode')

restriction

zalgonode doesn't support Non-alphabetic characters. (not guaranteed to succeed, when glitching non-alphabetic chars.)

reference

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i @h.yoshida/zalgonode

Weekly Downloads

3

Version

0.2.0

License

MIT License

Unpacked Size

36.8 kB

Total Files

44

Last publish

Collaborators

  • h.yoshida