CyberXYZ does not call a package safe in absolute terms. It records 1 known vulnerability for trim-newlines (npm), the worst rated HIGH, and no malicious-package signal. Whether it is acceptable depends on the version you run.
Does trim-newlines have known vulnerabilities?
Yes. CyberXYZ records 1 known vulnerability for trim-newlines (npm), the worst rated HIGH. They are GHSA-7p7h-4mm5-852v.
Which version of trim-newlines should I use?
3.0.1 or later clears every advisory recorded for trim-newlines (npm). Check the release you pick before installing it.
How do I check trim-newlines before installing?
Search trim-newlines in CyberXYZ Check at https://cyberxyz.io/check?q=trim-newlines. The xyz Scanner checks a project's dependencies, and CyberXYZ Proxy checks each package as it is installed.
Checked 2026-11-14 at 12:04 UTC. The most recent advisory here was published 2021-06-07. Updated continuously from NVD, GHSA, OSV and CNA feeds.