# trim-newlines (npm)

Trim newlines from the start and/or end of a string

- Latest: 5.0.0 (2023-03-20)
- Licence: MIT
- Downloads: 84258296 last month
- Advisories on the latest version: 0

- CVE-2021-33623 HIGH: Uncontrolled Resource Consumption in trim-newlines Fixed in 3.0.1, 4.0.1.

Sources: npm, deps.dev (CC BY 4.0), OSV. Last checked 4 Dec 2026.
