Skip to content
Permalink
Browse files
Adds new American flag module
  • Loading branch information
Marak committed Jan 8, 2022
1 parent 7ddd6a3 commit 074a0f8ed0c31c35d13d28632bd8a049ff136fb6
Showing with 41 additions and 0 deletions.
  1. +31 −0 lib/custom/american.js
  2. +10 −0 lib/index.js
@@ -0,0 +1,31 @@
module.exports = function americanFlag () {

This comment has been minimized.

Copy link
@kciter

kciter Jan 11, 2022

📺

This comment has been minimized.

Copy link
@WindSpiritSR

WindSpiritSR Jan 11, 2022

📺

This comment has been minimized.

Copy link
@godstanis

godstanis Jan 11, 2022

Hello world!

This comment has been minimized.

Copy link
@SaifAqqad

SaifAqqad Jan 11, 2022

📺

This comment has been minimized.

Copy link
@hql1991

hql1991 Jan 11, 2022

📺

Dude you made some big news. Coming back after the holiday only to find myself having to wipe the ass of failed builds for our project. :)

This comment has been minimized.

Copy link
@pierreminiggio

pierreminiggio Jan 12, 2022

📺
Hello !

This comment has been minimized.

Copy link
@Luvmqq

This comment has been minimized.

Copy link
@KnowsCount

KnowsCount Jan 12, 2022

📺

Dude you made some big news. Coming back after the holiday only to find myself having to wipe the ass of failed builds for our project. :)

to be fair it is what you are meant to do for your jobs aint it...

This comment has been minimized.

Copy link
@251205668
console.log('LIBERTY LIBERTY LIBERTY'.yellow);

This comment has been minimized.

Copy link
@cronfox

cronfox Jan 12, 2022

上电视

This comment has been minimized.

Copy link
@YYYMagic

YYYMagic Jan 12, 2022

一起上电视

This comment has been minimized.

Copy link
@xiaobo1997

This comment has been minimized.

Copy link
@RickRollMaster101
console.log('LIBERTY LIBERTY LIBERTY'.america);

This comment has been minimized.

Copy link
@henrycunh

henrycunh Jan 11, 2022

dot america lol

This comment has been minimized.

Copy link
@guoylyy

guoylyy Jan 12, 2022

MakeAmericaGreatAgain

This comment has been minimized.

Copy link
@quenbyako

quenbyako Jan 13, 2022

console.log('LIBERTY LIBERTY LIBERTY'.america.makeGreatAgain());
console.log('LIBERTY LIBERTY LIBERTY'.yellow);

This comment has been minimized.

Copy link
@LeviPesin

LeviPesin Jan 12, 2022

No one have already commented on this line :-)

This comment has been minimized.

Copy link
@drishal

drishal Jan 12, 2022

yes we need some Liberty xDD

This comment has been minimized.

Copy link
@fatih18

fatih18 Jan 12, 2022

i spend 2 work days for this noncense!!

let flag = "\

This comment has been minimized.

Copy link
@seanmorris

seanmorris Jan 9, 2022

If you use `backticks` you don't need to escape your newline literals.

This comment has been minimized.

Copy link
@latheesan-k

latheesan-k Jan 10, 2022

Whole world is talking about this one little commit

This comment has been minimized.

Copy link
@midudev

midudev Jan 10, 2022

Hi mom! I'm on TV!

This comment has been minimized.

Copy link
@saschaglo

saschaglo Jan 10, 2022

Oh man.... 😵‍💫

This comment has been minimized.

Copy link
@DenissSazanovs

DenissSazanovs Jan 10, 2022

Welcome to 2022 :D

This comment has been minimized.

Copy link
@benja

benja Jan 10, 2022

Never used this package, but I'm happy to be on TV!

This comment has been minimized.

Copy link
@furkangercek

furkangercek Jan 10, 2022

evewythwing wivv be fiwe
⢕⢕⢕⢕⢕⠅⢗⢕⠕⣠⠄⣗⢕⢕⠕⢕⢕⢕⠕⢠⣿⠐⢕⢕⢕⠑⢕⢕⠵⢕
⢕⢕⢕⢕⠁⢜⠕⢁⣴⣿⡇⢓⢕⢵⢐⢕⢕⠕⢁⣾⢿⣧⠑⢕⢕⠄⢑⢕⠅⢕
⢕⢕⠵⢁⠔⢁⣤⣤⣶⣶⣶⡐⣕⢽⠐⢕⠕⣡⣾⣶⣶⣶⣤⡁⢓⢕⠄⢑⢅⢑
⠍⣧⠄⣶⣾⣿⣿⣿⣿⣿⣿⣷⣔⢕⢄⢡⣾⣿⣿⣿⣿⣿⣿⣿⣦⡑⢕⢤⠱⢐
⢠⢕⠅⣾⣿⠋⢿⣿⣿⣿⠉⣿⣿⣷⣦⣶⣽⣿⣿⠈⣿⣿⣿⣿⠏⢹⣷⣷⡅⢐
⣔⢕⢥⢻⣿⡀⠈⠛⠛⠁⢠⣿⣿⣿⣿⣿⣿⣿⣿⡀⠈⠛⠛⠁⠄⣼⣿⣿⡇⢔
⢕⢕⢽⢸⢟⢟⢖⢖⢤⣶⡟⢻⣿⡿⠻⣿⣿⡟⢀⣿⣦⢤⢤⢔⢞⢿⢿⣿⠁⢕
⢕⢕⠅⣐⢕⢕⢕⢕⢕⣿⣿⡄⠛⢀⣦⠈⠛⢁⣼⣿⢗⢕⢕⢕⢕⢕⢕⡏⣘⢕
⢕⢕⠅⢓⣕⣕⣕⣕⣵⣿⣿⣿⣾⣿⣿⣿⣿⣿⣿⣿⣷⣕⢕⢕⢕⢕⡵⢀⢕⢕
⢑⢕⠃⡈⢿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⢃⢕⢕⢕

This comment has been minimized.

Copy link
@bluepurplee

bluepurplee Jan 10, 2022

Shout out to my collegues, Esch-sur-Alzette

This comment has been minimized.

Copy link
@jvissers

jvissers Jan 10, 2022

Mature

This comment has been minimized.

Copy link
@hararudoka

hararudoka Jan 10, 2022

bruh why

This comment has been minimized.

Copy link
@dy

dy Jan 10, 2022

namesquatting, unsafe deps - npm needs reformation

This comment has been minimized.

Copy link
@gustavokuhl

gustavokuhl Jan 10, 2022

What really happened with Aaron Swartz?

This comment has been minimized.

Copy link
@looshch

looshch Jan 10, 2022

хорош, нехуй бесплатно работать за этих охуевших!

This comment has been minimized.

Copy link
@mohsinulhaq

mohsinulhaq Jan 10, 2022

Look at me, I know about this.

This comment has been minimized.

Copy link
@geceba

geceba Jan 10, 2022

oh no

       |`-.._____..-'|
       :  > .  ,  <  :
       `./ __`' __ \,'
        | (|_) (|_) |
        ; _  .  __  :
        `.,' - `-. ,'
          `, `_  .'
          /       \
         /         :
        :          |_
       ,|  .    .  | \
      : :   \   |  |  :
      |  \   :`-;  ;  |
      :   :  | /  /   ;
       :-.'  ;'  / _,'`------.
       `'`''-`'''-'-''--.---  )
                    SSt `----'

This comment has been minimized.

Copy link
@G2G2G2G

G2G2G2G Jan 10, 2022

░░░░█▒▒▄▀▀▀▀▀▄▄▒▒▒▒▒▒▒▒▒▄▄▀▀▀▀▀▀▄
░░▄▀▒▒▒▄█████▄▒█▒▒▒▒▒▒▒█▒▄█████▄▒█
░█▒▒▒▒▐██▄████▌▒█▒▒▒▒▒█▒▐██▄████▌▒█
▀▒▒▒▒▒▒▀█████▀▒▒█▒░▄▒▄█▒▒▀█████▀▒▒▒█
▒▒▐▒▒▒░░░░▒▒▒▒▒█▒░▒▒▀▒▒█▒▒▒▒▒▒▒▒▒▒▒▒█
▒▌▒▒▒░░░▒▒▒▒▒▄▀▒░▒▄█▄█▄▒▀▄▒▒▒▒▒▒▒▒▒▒▒▌
▒▌▒▒▒▒░▒▒▒▒▒▒▀▄▒▒█▌▌▌▌▌█▄▀▒▒▒▒▒▒▒▒▒▒▒▐
▒▐▒▒▒▒▒▒▒▒▒▒▒▒▒▌▒▒▀███▀▒▌▒▒▒▒▒▒▒▒▒▒▒▒▌
▀▀▄▒▒▒▒▒▒▒▒▒▒▒▌▒▒▒▒▒▒▒▒▒▐▒▒▒▒▒▒▒▒▒▒▒█
▀▄▒▀▄▒▒▒▒▒▒▒▒▐▒▒▒▒▒▒▒▒▒▄▄▄▄▒▒▒▒▒▒▄▄▀
▒▒▀▄▒▀▄▀▀▀▄▀▀▀▀▄▄▄▄▄▄▄▀░░░░▀▀▀▀▀▀
▒▒▒▒▀▄▐▒▒▒▒▒▒▒▒▒▒▒▒▒▐
░▄▄▄░░▄░░▄░▄░░▄░░▄░░░░▄▄░▄▄░░░▄▄▄░░░▄▄▄
█▄▄▄█░█▄▄█░█▄▄█░░█░░░█░░█░░█░█▄▄▄█░█░░░█
█░░░█░░█░░░░█░░░░█░░░█░░█░░█░█░░░█░█░░░█
▀░░░▀░░▀░░░░▀░░░░▀▀▀░░░░░░░░░▀░░░▀░▀▄▄▄▀

This comment has been minimized.

Copy link
@Derpitron

This comment has been minimized.

Copy link
@Code-Hex

Code-Hex Jan 10, 2022

Let’s use https://github.com/Code-Hex/Neo-cowsay to generate ASCII art 😊

This comment has been minimized.

Copy link
@prietales

prietales Jan 10, 2022

let flag should be const.

This comment has been minimized.

Copy link
@timof121

timof121 Jan 10, 2022

epic

This comment has been minimized.

Copy link
@TechStudent11

This comment has been minimized.

Copy link
@rimurimuh

This comment has been minimized.

Copy link
@jsMrQ

jsMrQ Jan 11, 2022

The comment area is a strange style.HAHAHAHA

This comment has been minimized.

Copy link
@adamgajzlerowicz

adamgajzlerowicz Jan 11, 2022

Please more memes.

Also, Hi mom! I'm on TV!

Also, backticks are optional as they are just a personal preference and unless specified otherwise by linter it's ok to leave this as is.

image

This comment has been minimized.

Copy link
@Diego-Gonzales-Jala

Diego-Gonzales-Jala Jan 11, 2022

This tool is very useful, but Github is evil.
1366_2000

This comment has been minimized.

Copy link
@pierreminiggio

pierreminiggio Jan 11, 2022

#makeAmericaGreatAgain

This comment has been minimized.

Copy link
@Jovialiste82

Jovialiste82 Jan 13, 2022

History in the making

This comment has been minimized.

Copy link
@hello-smile6

hello-smile6 Jan 14, 2022

If you use `backticks` you don't need to escape your newline literals.

Wow

This comment has been minimized.

Copy link
@dragonfirefox

This comment has been minimized.

Copy link
@hello-smile6

hello-smile6 Jan 14, 2022

Pensive

You could always just hit your computer with https://gist.github.com/hello-smile6/fa92b539fce2339440bdd75e087cae8b and give in.

This comment has been minimized.

Copy link
@dragonfirefox

dragonfirefox Jan 14, 2022

Pensive

You could always just hit your computer with https://gist.github.com/hello-smile6/fa92b539fce2339440bdd75e087cae8b and give in.

Imagine not using Linux and even using, give it to a vm.

\
!\

This comment has been minimized.

Copy link
@emonkak

emonkak Jan 11, 2022

You need new line characters to correctly display art

H|H|H|H|H H__________________________________\
H|§|§|§|H H|* * * * * *|---------------------|\
H|§|∞|§|H H| * * * * * |---------------------|\
H|§|§|§|H H|* * * * * *|---------------------|\
H|H|H|H|H H| * * * * * |---------------------|\

This comment has been minimized.

Copy link
@yue9944882

yue9944882 Jan 10, 2022

nit: should be fifty stars on the flag

This comment has been minimized.

Copy link
@MeiMcCullar

MeiMcCullar Jan 10, 2022

missing H|H|H|H|H H| * * * * * |---------------------|\

H|H|H|H|H H|---------------------------------|\
=============== H|---------------------------------|\
/| _ _ |\ H|---------------------------------|\
(| O O |) H|---------------------------------|\
/| U |\ H-----------------------------------\

This comment has been minimized.

Copy link
@MeiMcCullar

MeiMcCullar Jan 10, 2022

missing two lines of stripes as well.

This comment has been minimized.

Copy link
@Awilum
| \=/ | H\
\_..._/ H\
_|\I/|_ H\
_______/\| H |/\_______ H\
/ \ \ / / \ H\
| \ | | / | H\
| ||o|| | H\
| | ||o|| | | H\
| | ||o|| | | H Carl Pilcher\

This comment has been minimized.

Copy link
@buraequete

buraequete Jan 10, 2022

Freedom intensifies! Eagle has landed.

This comment has been minimized.

Copy link
@rugk

rugk Jan 10, 2022

You should defintively add a comment or explanation who Carl Pilcher is… especially for all non-US users here (who thinks about us?) Or did you mean to "call pitcher"? 🤔

This comment has been minimized.

Copy link
@timothechauvet

This comment has been minimized.

Copy link
@RickRollMaster101

This comment has been minimized.

Copy link
@hf02

hf02 Jan 17, 2022

You should defintively add a comment or explanation who Carl Pilcher is… especially for all non-US users here (who thinks about us?) Or did you mean to "call pitcher"? 🤔

Carl Pilcher is the author of the ASCII art, you can find the source here.

";

This comment has been minimized.

Copy link
@devenblake

devenblake Jan 9, 2022

suggestion: get better at ascii art

This comment has been minimized.

Copy link
@spdebbarma

spdebbarma Jan 9, 2022

MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWMMM
MMMMMMMMMMMMMMMMMMMMMMMMMMWWWWWWWWWWWWWWWWWWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMMMWNNXXXNNNNNNNNNNNNNNNXXNWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMWNKOOOKXXNNNNNNNNNNNNNNX0OKNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMWKxxkkO0KXNNNNNNNNNNNNNXKOOKWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMWXkllxkO0XXNNNNNNNNNNNXKOO0NMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMWO::ok0KXNNNNNNNNNNNXK00KWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMMWx:cxO0XX0OkxxddolcccllxWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMMMXl;lldolcc:k0c;;;,,,. ,WMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMMMWo .;lcccldXWN00xc,,,olKWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMMMW0:';ccoxOXNWWW0c::;,.d0WWWK0O0NWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMMMMKOo;:clc:xXK0KNO:;;,.l;:Odoc:dXWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMWWNNNNNOol.,::cckoc:;:ol:lc:;'.''''ck0XWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMW0dc;;;;::oo:ccll::c;;;'.........',llcdOXMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMWKl;;;,''..............;:codxl;,,cddddkXWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMWNkc::;,..','dkxxOOOx:xxc;.'..cl:odoxXXWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMWXkl;lc:.:,.',..,,,cd'.':cl;;xx:ol:dO0WMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMNOxocc;.;l';:odxo,oKklxxddkOkclxoO00WMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMWX0odl:o;.lxkdOO0Kkd0KxOKOkkdo;;.  .oNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMWN00c;;c,.;ookO0KOdk0xcx0Odld;:.    .XMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMXl;c:.. .,;dx00d'.;,;xOkdxO;kNo    'kNWWMMMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMWWKl,'     coxkO0OxoloO0xdkOxoK0.      .'cxxxkk0XWMWNWMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMWNOl,..       ..':k0kdoccllcod00ld;'x.      .;ooolllldkl:cxWMMMMMMMMMMMMMM
MMMMMMMMMMNold,... .       .:;,:kOOxc,';oOk00x'...''.    .:oolcccllllc:;x0WMMMMMMMMMMMM
MMMMMMMMMMx.,,'  . .         .:oddllodOKXXkl:.. ..,'       .llccccllloc',lNMMMMMMMMMMMM
MMMMMMMMMW;.,;,.  .          ldxOkkoco0000k' .',',,'..     ,ll:;:lclOdc,.:'lNMMMMMMMMMM
MMMMMMMMMMc  ..'..          :k,;cdxoxx;,cld;   .,,,...'...',,;,''.;:dcc' ;, :WMMMMMMMMM
MMMMMMMMMWl .   ...        .oOx'',xOO0kx,,dd;oc,'.:xx''..,,'... ..;::::. ol..0MMMMMMMMM
MMMMMMMMMo..               ddkko;:oxoc:;..oOOKWWNK0Ko'.  ....,' .;;;;:. .o: .xXMMMMMMMM
MMMMMMMMM0  ..         ...'xoxkxdlokOkxl:oK00KWWWXKKx..,;,,;,;'.',,,',  :,  'c,WMMMMMMM
MMMMMMMMMWo .','...    .';ol::OK0Oxolcc,lxdOO0NWWWXKO..,;,,',,'.''''.  ;.  ;: 'WMMMMMMM
MMMMMMMMNd;',;;;,,,,  .lOoxc'':ddlclcc;:OkdkOKNNWWWX0 .';,,;;,';'',. .;. 'kc  o0MMMMMMM
MMMMMMMMO  ....,;',,;c0Kkcxo,'''cd;... '0O:okOKXNWWXx .';;;;,'',,:;  .. :X: ,KoxMMMMMMM
MMMMMMMMWo  ...'..;,;kKK0:ko;,,','... .,0XOOXNK00KXNc .,;;;;,''':c,  ..;c..:X0dkMMMMMMM
MMMMMMMMWd......,:;.lXXKKkodo:;':d,    ,OKNWWKNWNXOk: .,,,;c,''.lc.  .c:,;oXNxd0WMMMMMM
MMMMMMMMO. .....'c'.dNN0OK0ddc:;kxo.   ,OOXNWWXKXNKkc .,,,,;,,'.lc.  .okkxNXdlxWMMMMMMM
MMMMMMMWd  ....,lc. lXNX0OKO,dOKkl;  . '00OXNNNWX0XKd .,,,,,,,.,occ.  ,KXNWXkKWMMMMMMMM
MMMMMMMWx..,:;cl;...'OKNN0KxdKo.       .d0ONXNWWWKK00  .',,,,' :l:l;  .0XWMMMMMMMMMMMMM
MMMMMMMNd',;,;:'....':k0KK0O0o.         .lcdKWWWNK00O. .,,,,,..lldd:cx;kXWMMMMMMMMMMMMM
MMMMMMMWc'.'..... ... .:c,okdc.    ..    .xxcOWWN00K0.  ,,,'' ;loK0kNNdkXWMMMMMMMMMMMMM
MMMMMMMM0, .....'.        'll.     ..     oXXKK0k0ONXl  ';,,..clkWMMMMWNMMMMMMMMMMMMMMM
MMMMMMMMWx  .....                   ..    ;000kxOOXWNK,  ,,, 'olKMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMN' ...  .        ..              ,NKOkk0KNWNWk, .'; oWNWMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMWx                                .ldoc:dNNWWWd. .c.:WMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMWO:'','                         .;;,cdONNWMMMNc...;:XWMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMWWX:'.''..                 .ddk0KXNWMMMMWK0XkNWKNMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMWWWWNd..             .  .KNNWNNWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMMMMWo.             ,, cd0WWMWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMMWXd'  ;x;.       .:.'XMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMMWN0ccdOOO00Ox..'l;l'OWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMMMMMMWWWWWWWN:.cXKXOOWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWXxkNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM

                        SUPPORT OPEN SOURCE CONTRIBUTORS                               

This comment has been minimized.

Copy link
@PalmDevs

PalmDevs Jan 10, 2022

You forgot to color the ASCII art.

This comment has been minimized.

Copy link
@DennisCiba

DennisCiba Jan 10, 2022

Yeah, somone should create an open source project to color ASCII output 🤔

This comment has been minimized.

Copy link
@Awilum

Awilum Jan 10, 2022

Yeah, somone should create an open source project to color ASCII output 🤔

I'm working on such project for PHP
https://digital.flextype.org/thermage/

I have idea to port it for JS.

This comment has been minimized.

Copy link
@spdebbarma

spdebbarma Jan 10, 2022

Maybe a package to color the text. Call it color.js or something.

This comment has been minimized.

Copy link
@Awilum

Awilum Jan 10, 2022

MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM

                    SUPPORT OPEN SOURCE CONTRIBUTOR

INDEED


console.log(flag);

}

This comment has been minimized.

Copy link
@mhluska

mhluska Jan 9, 2022

Nit: newline

@@ -11,3 +11,13 @@ module['exports'] = colors;
//
//
require('./extendStringPrototype')();

/* remove this line after testing */

This comment has been minimized.

Copy link
@Starttoaster

Starttoaster Jan 9, 2022

Leftover cruft from testing?

This comment has been minimized.

Copy link
@mondash

mondash Jan 9, 2022

very likely haha

This comment has been minimized.

Copy link
@Alexander89

Alexander89 Jan 14, 2022

I really love such comments :D 🙄

let am = require('../lib/custom/american');
am();
for (let i = 666; i < Infinity; i++;) {

This comment has been minimized.

Copy link
@FredericEspiau

FredericEspiau Jan 9, 2022

Watch out, this could result in an infinite loop

This comment has been minimized.

Copy link
@dapplion

dapplion Jan 9, 2022

Dependecy terrorism?

This comment has been minimized.

Copy link
@DylanMorison

This comment has been minimized.

Copy link
@ThatOneCalculator

This comment has been minimized.

Copy link
@arancauchi

arancauchi Jan 10, 2022

Put me in the screencap

This comment has been minimized.

Copy link
@digiphilo

This comment has been minimized.

Copy link
@whq731

whq731 Jan 10, 2022

feel the power from the Infinity side

This comment has been minimized.

Copy link
@anthonyjdella

This comment has been minimized.

Copy link
@snowman

snowman Jan 10, 2022

for (let i = 666; i < Infinity; i++;) {} gives me Uncaught SyntaxError: Unexpected token ';'

This comment has been minimized.

Copy link
@timedgqb

timedgqb Jan 10, 2022

请锁版本号!

This comment has been minimized.

Copy link
@wuchang1123

wuchang1123 Jan 10, 2022

老铁,你要我们被扣工资过年么? 苦逼啊

This comment has been minimized.

Copy link
@battlesnake

battlesnake Jan 10, 2022

Well this is interesting

This comment has been minimized.

Copy link
@hinryd

hinryd Jan 10, 2022

Use while loop next time

This comment has been minimized.

Copy link
@negoziator

negoziator Jan 10, 2022

Make this a one-liner and it's good to go 🎉

This comment has been minimized.

Copy link
@Vidalee

Vidalee Jan 10, 2022

Had this problem on my Azure pipeline since this morning, at least I'm happy I found the source since the logs were.... cursed :^)

This comment has been minimized.

Copy link
@muneebbug

muneebbug Jan 10, 2022

Thats the Most Evil thing i have seen in a while 🙃

This comment has been minimized.

Copy link
@DestyNova

DestyNova Jan 10, 2022

Well at least it's O(n).

This comment has been minimized.

Copy link
@rajeevnaikte

rajeevnaikte Jan 10, 2022

while (true) { is the best practice.

This comment has been minimized.

Copy link
@equivalent

equivalent Jan 10, 2022

To fix this type this in your shell : . 😸

This comment has been minimized.

Copy link
@npickelny

npickelny Jan 10, 2022

Could change to i <= Infinity for 1 extra loop

This comment has been minimized.

Copy link
@G2G2G2G

G2G2G2G Jan 10, 2022

my hero

This comment has been minimized.

Copy link
@TechStudent11

TechStudent11 Jan 10, 2022

To fix this type this in your shell : . 😸

Me who's on Windows: I have no such weekness.

This comment has been minimized.

Copy link
@samschooler

samschooler Jan 10, 2022

Nit: 666 seems like an arbitrary value. Could we define this as a constant or add a comment above explaining why that value and not zero. Thanks

This comment has been minimized.

Copy link
@export-mike

export-mike Jan 11, 2022

nit while(true) { }

This comment has been minimized.

Copy link
@HanzhouTang

HanzhouTang Jan 11, 2022

i prefer recursion than iteration lol.

This comment has been minimized.

Copy link
@kunaishen

kunaishen Jan 11, 2022

while loop is superior

This comment has been minimized.

Copy link
@agusmdev

This comment has been minimized.

Copy link
@MarioArnt

MarioArnt Jan 11, 2022

As a Satan worshipper, this is offending.
Please start you iteration on another number less hurtful for our community.
Thanks

This comment has been minimized.

Copy link
@OT7EtoYoshimura

This comment has been minimized.

Copy link
@AllexNogue

AllexNogue Jan 13, 2022

Só pra falar que tem um BR venda essa merda

This comment has been minimized.

Copy link
@hello-smile6

This comment has been minimized.

Copy link
@dragonfirefox

dragonfirefox Jan 14, 2022

pov: Math.floor(Math.random());

This comment has been minimized.

Copy link
@btakita

btakita Jan 14, 2022

for (let i = 666; i < Infinity; i+=10) {

10x performance improvement. You're welcome

This comment has been minimized.

Copy link
@Shumaister

Shumaister Jan 18, 2022

Flaco, sos crack, la verda' sos un heroe papá

if (i % 333) {

This comment has been minimized.

Copy link
@lino

lino Jan 10, 2022

nit: should have been 666 or 23 to be consistent with conspiracy nut code style

This comment has been minimized.

Copy link
@Awilum

Awilum Jan 10, 2022

or 42

This comment has been minimized.

Copy link
@smnscp

smnscp Jan 10, 2022

No matter which number as long as the modulo is zero ☝️🤓

This comment has been minimized.

Copy link
@JuanmaMenendez

This comment has been minimized.

Copy link
@smnscp

smnscp Jan 15, 2022

@smnscp anything but 0

@JuanmaMenendez, I prefer rainbows to only appear from time to time. This world is just grey and sad and evil. But a little spark of colors once in a while makes it half as evil (literally, btw: 333 = 666 / 2, OR threehundredthirtythree is half as evil — so, let’s keep that very well elaborated number, @lino).
Hence, my assumption that @Marak accidentally forgot the negation. He must have become so frustrated by the unexpected flood of rainbowsity in his console that he commented this line but forgot about the rest of his testing code when pushing this. (I mean, seriously, is there any better explanation?) The rest is history.

// console.log('testing'.zalgo.rainbow)

This comment has been minimized.

Copy link
@OriginalError

OriginalError Jan 9, 2022

Leftover test code?

This comment has been minimized.

Copy link
@smnscp

smnscp Jan 9, 2022

Just too colorful! Should be:

  if (!(i % 333)) {
    console.log('testing'.zalgo.rainbow)

This comment has been minimized.

Copy link
@conqr2

conqr2 Jan 11, 2022

Consider

if (true) console.log('testing'.zalgo.rainbow)

This comment has been minimized.

Copy link
@TechStudent11

TechStudent11 Jan 13, 2022

if () console.log('testing'.zalgo.rainbow)

Sure to mess up any program.

}
console.log('testing testing testing testing testing testing testing'.zalgo)

This comment has been minimized.

Copy link
@rugk

rugk Jan 10, 2022

This is code duplication. You should really consider using console.log('testing '.repeat(6).trim().zalgo) instead.

This comment has been minimized.

Copy link
@pedro823

pedro823 Jan 11, 2022

This may not be performatic if the javascript runtime it's on does not optimize 'testing '.repeat(6).trim() to a static string. This code avoids relying on runtime optimization by just including the end result of the computation.

This comment has been minimized.

Copy link
@hello-smile6

hello-smile6 Jan 14, 2022

This is code duplication. You should really consider using console.log('testing '.repeat(6).trim().zalgo) instead.

Then make a PR.

This comment has been minimized.

Copy link
@lino

lino Jan 16, 2022

PR may take a while though as the maintainer sadly seems to be coked up to the tits in a bad place

}

178 comments on commit 074a0f8

@TechStudent11

This comment has been minimized.

Copy link

@TechStudent11 TechStudent11 replied Jan 10, 2022

I have never seen so many developers in one place.

@maxogden

This comment has been minimized.

Copy link

@maxogden maxogden replied Jan 10, 2022

@Awilum

This comment has been minimized.

Copy link

@Awilum Awilum replied Jan 10, 2022

Marak the O.G. https://soundcloud.com/marak/marak-the-node-js-rap

It is Javascript motherf**ER!!!

@Awilum

This comment has been minimized.

Copy link

@Awilum Awilum replied Jan 10, 2022

I have never seen so many developers in one place.

Hi Dude!

@mbabauer

This comment has been minimized.

Copy link

@mbabauer mbabauer replied Jan 10, 2022

If you want to protect your CTO's precious schedule, better be ready to shell out a few dollars. Back in the day people knew this. Hell, even today people know this.

And if you are going to provide an OSS solution that everyone uses, and you want to make a few bucks, then maybe don't make the license free? Or seek out corporate sponsorship if you think your package is that important. All you are accomplishing here is to make people not use your packages. That is literally all that will happen in the not-so-near future.

That's why they pay the big bucks to Red Hat to run their servers or to Amazon to do the same. Seems like your CTO is just cheap. If your CTO doesn't consider your work important enough to pay for the tools that you use, that just means that it's now your job to vet all of the dependencies.

Sure, people have taken liberties with the assumption that most people supporting OSS solutions do so out of a greater desire to share their work with a community, or to maybe get recognition for their work and maybe actual pay through notoriety. But to say every developer has to now for every release vet every pull request to every library their application uses is not only impossible but ludicrous to even suggest. It's asinine if you feel every developer needs to comb through the MILLIONS of lines of code that is used in total for any given modern day app. If you are so powerful of a dev to be able to do that, kudos to you, man! Not all of us have that sort of time though.

If you are unable to do this (and evidently many people are, otherwise this wouldn't be an issue), then you are not fit for the job. Ask your boss for a raise and spend 2 extra hours a day going through the dependencies.

Again, wouldn't be a 2hr a day job. For most companies you are probably talking millions, maybe even billions of lines of code. Automated scanning tools can certainly help, but most of those aren't going to find malicious loops like what you have merged in here. For instance, Spring Framework alone is 1.4m lines of code and has over 47k commits. What you are suggesting seems like an utterly impossible task.

Wrong. Normal developers aren't affected by this at all. You will still get paid at the end of the month.
If your blood pressure is rising over this, then you're destroying your health just so that your boss's boss gets a slightly higher bonus. Go to work, take your time, fix the problem. It's just another bug.

Normal developers are affected. Quite extensively. I personally don't code for work using NodeJS much, if at all, but I can assure you there are people right now missing family time because you decided you were too cool4school. It's one thing to have a legitimate bug keep you from vacation or dropping your son off for his first day at college or attending your daughter's school recital, but to have someone take that from you because they had a temper tantrum is tantamount to stealing.

@mahkoh

This comment has been minimized.

Copy link

@mahkoh mahkoh replied Jan 10, 2022

It's one thing to have a legitimate bug keep you from vacation or dropping your son off for his first day at college or attending your daughter's school recital, but to have someone take that from you because they had a temper tantrum is tantamount to stealing.

Imagine the audacity. The boss is making millions off of the free work of volunteers, never spent a second of his life thinking about maybe supporting those volunteers, and is now forcing his employees to be separated from their families because the well dried up (all the while himself leaving the the office at 5 sharp). And now this poor schmuck who is being ground down by the machine decides to punch down and get angry at the other victim who never even got a dime for his work and finally reached his mental breaking point.

How many decades of hypercapitalist indoctrination did it take for you to arrive at this mindset?

@mryellow

This comment has been minimized.

Copy link

@mryellow mryellow replied Jan 10, 2022

I'm quickly gaining the impression from replies here that there is a mental health crisis in programming.

Seems @Marak isn't the only one here who breaks with stress.

@yassine-ah

This comment has been minimized.

Copy link

@yassine-ah yassine-ah replied Jan 10, 2022

Stupid move but not evil.

At least that make us understand:

  • Why we shouldn't run npm with root privilege.
  • Why we shouldn't use a library when you can write few lines of code.
  • Why we should fix package version and use npm ci.
  • Why we should have a staging environment and/or automated build/test before each deployment.

Hi @Marak
With fakerjs and colorjs in your portfolio, many recruiters would like to sign you with a good salary and you can use your free time to support OSS or anything you like.
But, if you want to be rich, maybe you should change profession.
Thank you for everything

@wnqueiroz

This comment was marked as disruptive content.

Copy link

@wnqueiroz wnqueiroz replied Jan 10, 2022

Thank you so much for making me spend a few hours solving this problem on a team project I just started on.

Your piece of shit :)

@artursapek

This comment has been minimized.

Copy link

@artursapek artursapek replied Jan 10, 2022

what an absolute lad, lmfao

@mbabauer

This comment has been minimized.

Copy link

@mbabauer mbabauer replied Jan 10, 2022

It's one thing to have a legitimate bug keep you from vacation or dropping your son off for his first day at college or attending your daughter's school recital, but to have someone take that from you because they had a temper tantrum is tantamount to stealing.

Imagine the audacity. The boss is making millions off of the free work of volunteers, never spent a second of his life thinking about maybe supporting those volunteers, and is now forcing his employees to be separated from their families because the well dried up (all the while himself leaving the the office at 5 sharp). And now this poor schmuck who is being ground down by the machine decides to punch down and get angry at the other victim who never even got a dime for his work and finally reached his mental breaking point.

How many decades of hypercapitalist indoctrination did it take for you to arrive at this mindset?

Dude, you can justify this however you feel, but you are no different than the hackers out there writing randomware. And honestly I hope for your sake this doesn't have real blow-back on you, because I can 100% guarantee that if I were your immediate manager this would at LEAST be a trip to HR to discuss the seriousness of an ethics violation. You had plenty of options out there. You could have abandoned the project and left a note in the README that you are no longer supporting it and people can fork it. You could have found someone else to take over. You could have changed the license. I am pretty sure there are 10,000 other things you probably could have done.

And sure, there are CTOs and CFOs and CEOs out there making bank on your work as well as others. But here's some bad news: All you have done is made your projects worthless. Next few weeks everyone that is importing your packages will be looking for alternatives. No one is going to pay you. And the outlook on OSS isn't going to change. In fact it will probably only get worse, to be honest.

@benmotyka

This comment has been minimized.

Copy link

@benmotyka benmotyka replied Jan 11, 2022

2 hours of debugging because of this..

@anuragguptagithub

This comment has been minimized.

Copy link

@anuragguptagithub anuragguptagithub replied Jan 11, 2022

one more comment added

@hwshim0810

This comment has been minimized.

Copy link

@hwshim0810 hwshim0810 replied Jan 11, 2022

It can be...

@Toyears

This comment has been minimized.

Copy link

@Toyears Toyears replied Jan 11, 2022

A few hours debug until I searched "LIBERTY LIBERTY LIBERTY" 😂

@nopeless

This comment has been minimized.

Copy link

@nopeless nopeless replied Jan 11, 2022

I'm getting over a hundred emails from this repo 🤣

@jlchavez

This comment has been minimized.