Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
trim-right-x
Advanced tools
This method removes whitespace from the end of a string.
module.exports(string)
⇒ number
⏏trim-right-x
⇒ string
This method removes whitespace from the end of a string. (ES2019)
Kind: static property of trim-right-x
Returns: string
- The right trimmed string.
Throws:
TypeError
If string is null or undefined or not coercible.Param | Type | Description |
---|---|---|
string | string | The string to trim the right end whitespace from. |
Example
import trimEnd from 'trim-right-x';
console.log(trimEnd(' \t\na \t\n') === ' \t\na'); // true
FAQs
This method removes whitespace from the end of a string.
The npm package trim-right-x receives a total of 4,447 weekly downloads. As such, trim-right-x popularity was classified as popular.
We found that trim-right-x demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.