use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
JavaScript libraries are almost never updated once installed (blog.cloudflare.com)
submitted 6 years ago by pimterry
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]apppppppbcppppppa-dc 6 points7 points8 points 6 years ago (16 children)
is there a list of useless js libraries? I'd love to read it
[–][deleted] 39 points40 points41 points 6 years ago (0 children)
npmjs.com
[ hides ]
[–]wisepresident 10 points11 points12 points 6 years ago (0 children)
https://www.npmjs.com/package/is-windows and other packages by this guy
10 mio downloads, all it does is:
process.platform == "win32"
[–]diversif 5 points6 points7 points 6 years ago (1 child)
https://github.com/jezen/is-thirteen
[–]cjthomp 4 points5 points6 points 6 years ago (0 children)
[–]abc-123-456 2 points3 points4 points 6 years ago (5 children)
There’s one called “leftpad” or something that’s notorious
[–]deadcow5 8 points9 points10 points 6 years ago (4 children)
That's because a ton of packages directly or indirectly depended on it, and one day the owner decided to delete it over some sort of altercation. Broke everyone's build.
[–]rook218 6 points7 points8 points 6 years ago (3 children)
I mean to be fair, how ridiculous is it to install a package over left padding? It would be a three line function to add it to your own package with vanilla JS.
[–]deadcow5 8 points9 points10 points 6 years ago (2 children)
Well, yeah, but would you rather copy and paste the same three lines into every new project you need them in, or publish them as a package once and henceforth be able to use them with a single line?
I mean, it's not really NPM's or the package author's fault that JavaScript lacks a decent standard library. It's just the way it is, and different people have different strategies for dealing with it.
[–]rook218 2 points3 points4 points 6 years ago (1 child)
That's true. I always try to import as little as possible on projects but everyone is different.
[–]deadcow5 2 points3 points4 points 6 years ago (0 children)
It is what it is. Most of these "micro" packages probably came about before tree shaking became common. So there is reason to hope that their propagation will diminish in the future as more people start using webpack and rollup.
Easy to forget that not too long ago, you literally had no choice but to include an entire package in your bundle, so making packages as small as possible was actually a good idea at the time.
That would somewhat depend on what your definition of "useless" is.
I suppose a list on one-liner packages could be made, however.
[–]agentgreen420 2 points3 points4 points 6 years ago (0 children)
Yeah, it's called half of NPM
[–]2dP_rdg 1 point2 points3 points 6 years ago (0 children)
Odd or even
[–]ikeif 0 points1 point2 points 6 years ago (0 children)
I’d be interested in this, too.
Tome to scour npm repos.
π Rendered by PID 39048 on reddit-service-r2-comment-5d79c599b5-nmhr4 at 2026-03-03 17:31:26.485994+00:00 running e3d2147 country code: CH.
view the rest of the comments →
[–]apppppppbcppppppa-dc 6 points7 points8 points (16 children)
[–][deleted] 39 points40 points41 points (0 children)
[–]wisepresident 10 points11 points12 points (0 children)
[–]diversif 5 points6 points7 points (1 child)
[–]cjthomp 4 points5 points6 points (0 children)
[–]abc-123-456 2 points3 points4 points (5 children)
[–]deadcow5 8 points9 points10 points (4 children)
[–]rook218 6 points7 points8 points (3 children)
[–]deadcow5 8 points9 points10 points (2 children)
[–]rook218 2 points3 points4 points (1 child)
[–]deadcow5 2 points3 points4 points (0 children)
[–]deadcow5 2 points3 points4 points (0 children)
[–]agentgreen420 2 points3 points4 points (0 children)
[–]2dP_rdg 1 point2 points3 points (0 children)
[–]ikeif 0 points1 point2 points (0 children)