Need to do $X?
{npm,pip,gem} install $X
require('daemon')();
console.log("Yay I'm now a daemon! Right?");
Linux
BSD
| Your code: | usually lean as hell | |
| 3rd party libs: | highly variable, need to research | |
| Lang stdlib: | large user base, some funding | |
| OS/platform: | massive user base, funding |
Let's talk about indirect benefits
By wrapping native libraries, it got the indirect benefits of review by teams like Red Hat Product Security, who found this CVE.
Re-use by copy/paste meant that the Node libyaml author had to get around to patching his own copy of the native source. Just updating the OS copy of the library didn't fix the problem.
Some libraries that wrap by copy/paste still haven't been updated for this 2013 vulnerability.
Use tools like nsp to check your dependencies for updates and vulnerabilities.
$ nsp audit-package
Name Installed Patched Vulnerable Dependency
express 4.2.0 >=3.11 <4 || >=4.5 myapp > express@4.2.0
send 0.3.0 >= 0.8.4 myapp > express@4.2.0 > send@0.3.0
qs 0.6.6 >= 1.x myapp > express@4.2.0 > qs@0.6.6
serve-static 1.1.0 ~1.6.5 || >=1.7.2 myapp > express@4.2.0 > serve-static@1.1.0
(See also david-dm, gemcanary, …)