npm · npm:trim
trim deprecated
Trim string whitespace
The latest stable version of trim is 1.0.1, published on 2021-04-01. Verified by Vigia on 2026-11-12.
| Latest stable version | 1.0.1 |
|---|---|
| Published | 2021-04-01 20:48:35 UTC |
| Install | npm install trim@latest |
| Deprecation | Use String.prototype.trim() instead |
| Requires (engines) | none declared |
| Peer dependencies | — |
| Dist-tags | latest: 1.0.1 |
| License | MIT |
| Advisories on latest version | none known |
| Last verified | 2026-11-12 12:18:11 UTC |
| Sources | api.deps.dev, registry.npmjs.org, registry.npmjs.org |
Maintenance
| Activity | dormant |
|---|---|
| Last stable release | 2021-04-01 20:48:35 UTC · 2050 days ago |
| Stable releases in the last 12 months | 0 |
| Published versions | 5 |
Heuristic based only on release dates; it does not measure issue or security response times.
Version history
| Version | Published |
|---|---|
1.0.1 withdrawn | 2021-04-01 20:48:35 UTC |
1.0.0 withdrawn | 2020-11-13 00:07:19 UTC |
0.0.3 withdrawn | 2020-11-05 00:06:16 UTC |
0.0.2 withdrawn | 2020-11-05 00:04:05 UTC |
0.0.1 withdrawn | 2013-03-12 17:59:22 UTC |
Showing the 5 most recent of 5 versions. JSON
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?
The latest stable version of trim is 1.0.1, published on 2021-04-01. Verified by Vigia on 2026-11-12.
How do I install the latest version of trim?
Run npm install trim@latest. The latest stable version is 1.0.1 (verified 2026-11-12).
Is trim deprecated?
Yes. The registry marks trim as deprecated. Message from the maintainers: "Use String.prototype.trim() instead"
Which Node.js version does trim require?
trim 1.0.1 does not declare a Node.js version requirement.
Does trim 1.0.1 have known vulnerabilities?
No known advisories affect trim 1.0.1 according to the data Vigia checks.
Is trim still maintained?
trim published 0 stable releases in the last 12 months; the most recent was 2050 days ago. Activity: dormant.
Observed changes
No changes observed yet since Vigia started tracking this package.
Related packages
- @xobotyi/scrollbar-width
- @trpc/server
- url-to-options
- @nrwl/tao
- unique-stream
- clipboard
- blueimp-md5
- through2-filter
- create-error-class
- @ethereumjs/util
- timm
- @aws-sdk/url-parser
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) [](https://vigia.coredls.cloud/npm/trim) [](https://vigia.coredls.cloud/npm/trim)
For agents
GET https://vigia.coredls.cloud/v1/packages/npm/trim
GET https://vigia.coredls.cloud/v1/packages/npm/trim/versions/{version}