News for hackers. Stuff that matters.
Re:NPM package 'isarray' is downloaded 40M times a week by jen20 on Sunday November 08, 2020 @10:34AM (#25026354)
> The first advantage to just copy-pasting is that the snippet author might update it

The first disadvantage of “micro packages” over copy-pasting is that the author might update it to do something completely different - either because the author is malicious, or because of a transfer in maintainership of the package to someone who is malicious, or because of a compromise.

Re:NPM package 'isarray' is downloaded 40M times a week by usefulcat on Sunday November 08, 2020 @10:59AM (#25026569)
Or even without any malicious intent, simply because the functionality provided by the package is under/poorly specified.