10 comments

[ 12.0 ms ] story [ 658 ms ] thread
I'm not a web dev so I feel like I'm not in on the joke.
Looks like one of a series of joke NPM packages popularized after the left-pad fiasco.
It's not a web joke. It's someone playing around with npm and github.
It used to be that you could setup a web page with just a few lines of code and js script include and a css inlude.

I bet this lib was created as satire. Modern day web frameworks are so bloated and filled with overhead that even a simple one line evaluation can be turned into a monstrosity.

It's satire playing on the fact that the entire Node.js ecosystem is built around 1-liner packages that in any other language this would just be code snippets you'd find on stack overflow.

Look at: is-windows (seems archived now for some reason) or https://github.com/jonschlinkert/isobject - 2.6million dependencies

These packages started out as a good idea to make a standard library for javascript, but after event-stream, left-pad, and other controversies, it's becoming apparent how much of an anti-pattern small 1-liner packages have become.

How did I know this was going to be a useless/joke JS package? IMO, if you’re going to make a joke package, at least make it interesting like onelinerizer[0].

[0]: https://github.com/csvoss/onelinerizer

Well the title might have given it away.... the api of the package is pretty nice actually, some thought was put into it.
(comment deleted)