Clearly written by some smug [insert language here] dev… Nobody actually working in the JS/TS ecosystem is using var in 2026.
post
Is this functional programming?
And thus, js becomes lisp.
There wouldnt be a ram crisis if nobody needed a 32 gigs of ram in their pc just to run a "hello world" web app.
Coding noob here. What am I looking at? I want to laugh too. :(
npm, or node js by extension, is famous (infamous?) for having a library for however simple something is to implement. For example a whole library to trim spaces of a string, but only for the left side. Here the joke takes it to the extreme and even import numbers, if conditions, etc., features that are already available in the core language, from external npm libraries, and use that to write a code snippet.
Bad JavaScript Code to make fun of npm.
But it is just bad code and consequently it weakens the critic that npm deserves.
Oh, I'd recognize those parenthesis anywhere. Any sufficiently complicated javascript program contains an ad hoc, informally-specified, bug-ridden, supply-chain-vulnerable, slow implementation of half of Common Lisp.
standard Javascript experience
Also known as functional programming.
Holy hell, these packages don't actually exist... Right?
number-that-is-between-one-and-hundred-to-string
Yikes. You know that's a giant if-else-if based on the name
The sad part is that this is probably safer than using vanilla javascript.
This reminds me of a drinking game I did once during uni times: the player chooses a word, and if there is an npm package called like that, they drink. The one who finishes the bottle looses it all :)

all 21 comments