Gathering detailed insights and metrics for string.prototype.trimright
Gathering detailed insights and metrics for string.prototype.trimright
Gathering detailed insights and metrics for string.prototype.trimright
Gathering detailed insights and metrics for string.prototype.trimright
ES2019 spec-compliant shim for String.prototype.trimRight.
npm install string.prototype.trimright
Typescript
Module System
Min. Node Version
Node Version
NPM Version
99.1
Supply Chain
79.8
Quality
75.3
Maintenance
100
Vulnerability
100
License
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
8 Stars
77 Commits
3 Forks
4 Watchers
1 Branches
1 Contributors
Updated on Dec 13, 2021
Latest Version
2.1.3
Package Id
string.prototype.trimright@2.1.3
Size
5.76 kB
NPM Version
6.14.8
Node Version
14.15.0
Published on
Nov 22, 2020
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
A ES2019-spec-compliant String.prototype.trimRight
shim. Invoke its "shim" method to shim String.prototype.trimRight
if it is unavailable.
This package implements the es-shim API interface. It works in an ES3-supported environment and complies with the spec. In an ES6 environment, it will also work properly with Symbol
s.
Most common usage:
1var trimRight = require('string.prototype.trimright'); 2 3assert(trimRight(' \t\na \t\n') === 'a \t\n'); 4 5if (!String.prototype.trimRight) { 6 trimRight.shim(); 7} 8 9assert(trimRight(' \t\na \t\n ') === ' \t\na \t\n '.trimRight());
Simply clone the repo, npm install
, and run npm test
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
security policy file detected
Details
Reason
Found 0/26 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More