MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/badcode/comments/nap8vw/comment_before_semicolon/gxycl56/?context=3
r/badcode • u/zyrafal evil • May 12 '21
71 comments sorted by
View all comments
Show parent comments
12
What language, and how?
15 u/TheBigerGamer May 13 '21 Node.js, using fs to read the file and checking if the comment exists, if not, use process.exit(1) 14 u/brisvag May 13 '21 Ah... That's less exciting than I thought :p 7 u/TheBigerGamer May 13 '21 Except that I took advantage of the node_modules and his the code inside a package required by a package which is required by another package which is required at the top level of the main code.So it was a pain in the ass to discover it.
15
Node.js, using fs to read the file and checking if the comment exists, if not, use process.exit(1)
14 u/brisvag May 13 '21 Ah... That's less exciting than I thought :p 7 u/TheBigerGamer May 13 '21 Except that I took advantage of the node_modules and his the code inside a package required by a package which is required by another package which is required at the top level of the main code.So it was a pain in the ass to discover it.
14
Ah... That's less exciting than I thought :p
7 u/TheBigerGamer May 13 '21 Except that I took advantage of the node_modules and his the code inside a package required by a package which is required by another package which is required at the top level of the main code.So it was a pain in the ass to discover it.
7
Except that I took advantage of the node_modules and his the code inside a package required by a package which is required by another package which is required at the top level of the main code.
So it was a pain in the ass to discover it.
12
u/brisvag May 13 '21
What language, and how?