Gathering detailed insights and metrics for string.prototype.trimleft
Gathering detailed insights and metrics for string.prototype.trimleft
Gathering detailed insights and metrics for string.prototype.trimleft
Gathering detailed insights and metrics for string.prototype.trimleft
ES2019 spec-compliant shim for String.prototype.trimLeft.
npm install string.prototype.trimleft
Typescript
Module System
Min. Node Version
Node Version
NPM Version
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
7 Stars
76 Commits
4 Forks
3 Watchers
1 Branches
1 Contributors
Updated on Dec 15, 2021
Latest Version
2.1.3
Package Id
string.prototype.trimleft@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
An ES2019-spec-compliant String.prototype.trimLeft
shim. Invoke its "shim" method to shim String.prototype.trimLeft
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 trimLeft = require('string.prototype.trimleft'); 2 3assert(trimLeft(' \t\na \t\n') === 'a \t\n'); 4 5if (!String.prototype.trimLeft) { 6 trimLeft.shim(); 7} 8 9assert(trimLeft(' \t\na \t\n') === ' \t\na \t\n'.trimLeft());
Simply clone the repo, npm install
, and run npm test
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
no dangerous workflow patterns detected
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
security policy file detected
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 0/26 approved changesets -- 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