npm · npm:trim-newlines
trim-newlines active
Trim newlines from the start and/or end of a string
The latest stable version of trim-newlines is 5.0.0, published on 2023-03-20. Verified by Vigia on 2026-11-12.
| Latest stable version | 5.0.0 |
|---|---|
| Published | 2023-03-20 17:36:52 UTC |
| Install | npm install trim-newlines@latest |
| Requires (engines) | {"node":">=14.16"} |
| Peer dependencies | — |
| Dist-tags | 3-0-1: 3.0.1 latest: 5.0.0 |
| License | MIT |
| Advisories on latest version | none known |
| Last verified | 2026-11-12 13:59:09 UTC |
| Sources | api.deps.dev, registry.npmjs.org, registry.npmjs.org |
Maintenance
| Activity | dormant |
|---|---|
| Last stable release | 2023-03-20 17:36:52 UTC · 1333 days ago |
| Stable releases in the last 12 months | 0 |
| Published versions | 10 |
Heuristic based only on release dates; it does not measure issue or security response times.
Version history
| Version | Published |
|---|---|
5.0.0 | 2023-03-20 17:36:52 UTC |
4.1.1 | 2023-03-20 17:30:09 UTC |
4.1.0 | 2023-03-20 17:28:04 UTC |
4.0.2 | 2021-06-10 16:11:33 UTC |
3.0.1 | 2021-05-28 16:46:12 UTC |
4.0.1 | 2021-05-28 16:43:07 UTC |
4.0.0 | 2021-04-21 11:47:23 UTC |
3.0.0 | 2019-04-29 04:28:32 UTC |
2.0.0 | 2017-04-22 13:06:15 UTC |
1.0.0 | 2015-09-29 09:28:27 UTC |
Showing the 10 most recent of 10 versions. JSON
Version compatibility
Newest stable version that declares support for each runtime version (from the requirements published with each version).
| Runtime | Newest compatible version |
|---|---|
node 16 | 5.0.0 |
node 18 | 5.0.0 |
node 20 | 5.0.0 |
node 22 | 5.0.0 |
node 24 | 5.0.0 |
Give your AI agent these facts
Vigia is a free MCP server: your coding agent checks versions, breaking changes and vulnerabilities before it writes code. No signup, no API key.
claude mcp add --transport http vigia https://vigia.coredls.cloud/mcp
Add to CursorAdd to VS Code★ Star on GitHub
Any other MCP client
{ "mcpServers": { "vigia": { "url": "https://vigia.coredls.cloud/mcp" } } }Agent skill (SKILL.md): tells the agent when to use Vigia · GitHub Action for pull requests
Frequently asked questions
What is the latest version of trim-newlines?
The latest stable version of trim-newlines is 5.0.0, published on 2023-03-20. Verified by Vigia on 2026-11-12.
How do I install the latest version of trim-newlines?
Run npm install trim-newlines@latest. The latest stable version is 5.0.0 (verified 2026-11-12).
Is trim-newlines deprecated?
No. trim-newlines is not marked as deprecated in the registry.
Which Node.js version does trim-newlines require?
trim-newlines 5.0.0 declares this requirement: {"node":">=14.16"}.
Does trim-newlines 5.0.0 have known vulnerabilities?
No known advisories affect trim-newlines 5.0.0 according to the data Vigia checks.
Is trim-newlines still maintained?
trim-newlines published 0 stable releases in the last 12 months; the most recent was 1333 days ago. Activity: dormant.
Observed changes
No changes observed yet since Vigia started tracking this package.
Related packages
- @sentry-internal/replay
- select-hose
- @jsonjoy.com/util
- @types/tedious
- @yarnpkg/lockfile
- traverse
- blake3-wasm
- @radix-ui/react-slider
- @sentry-internal/browser-utils
- postcss-svgo
- ecc-jsbn
- @types/jsdom
Badges for your README
Show the latest version, maintenance status and deprecation status of this package. Copy the Markdown:
[](https://vigia.coredls.cloud/npm/trim-newlines) [](https://vigia.coredls.cloud/npm/trim-newlines) [](https://vigia.coredls.cloud/npm/trim-newlines)
For agents
GET https://vigia.coredls.cloud/v1/packages/npm/trim-newlines
GET https://vigia.coredls.cloud/v1/packages/npm/trim-newlines/versions/{version}