4 ms·
unpkg may work, but I doubt many people know of that. Most people are going to reach for Github, and let me warn you right now: the packages on NPM are not nec
by deckard1 6y ago
unpkg may work, but I doubt many people know of that.
Most people are going to reach for Github, and let me warn you right now: the packages on NPM are not necessarily from the source code you may find on Github. I've run into this a number of times, where a package exists on NPM that has an entirely different Github repo than you may expect. In addition, people can freely create NPM packages that look official but are not. It's a huge security hole.
If a package contains only minified JS, then you're not going to be able to audit it. And it goes without saying, if you didn't minify the code yourself, how well do you really trust it in the first place? It's a huge tower of trust, and NPM solves none of it.