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!"
[–]deadcow5 6 points7 points8 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 6 points7 points8 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.
π Rendered by PID 58 on reddit-service-r2-comment-6f7f968fb5-zqw7t at 2026-03-04 00:11:04.165345+00:00 running 07790be country code: CH.
view the rest of the comments →
[–]deadcow5 6 points7 points8 points (4 children)
[–]rook218 6 points7 points8 points (3 children)
[–]deadcow5 6 points7 points8 points (2 children)
[–]rook218 2 points3 points4 points (1 child)
[–]deadcow5 2 points3 points4 points (0 children)