←back to thread

1208 points jamesberthoty | 1 comments | | HN request time: 0.558s | source
Show context
kace91 ◴[] No.45261497[source]
I think these kinds of attack would be strongly reduced if js had a strong standard library.

If it was provided, it would significantly trim dependency trees of all the small utility libraries.

Perhaps we need a common community effort to create a “distro” of curated and safe dependencies one can install safely, by analyzing the most popular packages and checking what’s common and small enough to be worth being included/forked.

replies(4): >>45267948 #>>45269564 #>>45270100 #>>45272304 #
1. elmo2you ◴[] No.45267948[source]
Ever seen XKCD #927? (https://xkcd.com/927)

Joking aside, I don't think there ever really was a lack of initiatives by entities (communities, companies, whatever) to create some sort of standard library (we typically tend to call them frameworks). There's just simply too much diversity, cultures and subcultures within the whole JavaScript sphere to ever get a global consensus on what that "standard" library then should look like. Not to mention the commercial entities with very real stakes in things they might not want to relinquish to some global unity consensus (as it may practically hurt their current bottom line).