string.prototype.trimstart
Advanced tools
ES2019 spec-compliant String.prototype.trimStart shim.
Weekly downloads
Changelog
v1.0.5 - 2022-05-02
61d4009
node/install
instead of node/run
; use codecov
action bfe39c4
36e3730
4f77eed
eslint
, @ljharb/eslint-config
, @es-shims/api
, safe-publish-latest
, tape
59fcb99
eslint
, @ljharb/eslint-config
, aud
, auto-changelog
, functions-have-names
, tape
486ffcf
b33ac48
eslint
, @ljharb/eslint-config
, @es-shims/api
, aud
, auto-changelog
, tape
3c89fa5
00be6b3
eslint
, tape
13a08f5
6ac576d
prepublishOnly
script for npm 7+ fa382ca
define-properties
d57bffe
Readme
An ES2019-spec-compliant String.prototype.trimStart
shim. Invoke its "shim" method to shim String.prototype.trimStart
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:
var trimStart = require('string.prototype.trimstart');
assert(trimStart(' \t\na \t\n') === 'a \t\n');
if (!String.prototype.trimStart) {
trimStart.shim();
}
assert(trimStart(' \t\na \t\n') === ' \t\na \t\n'.trimStart());
Simply clone the repo, npm install
, and run npm test
ES2019 spec-compliant String.prototype.trimStart shim.
The npm package string.prototype.trimstart receives a total of 21,961,665 weekly downloads. As such, string.prototype.trimstart popularity was classified as popular.
We found that string.prototype.trimstart demonstrated a healthy version release cadence and project activity. It has 2 open source maintainers collaborating on the project.