
Product
Introducing Socket Fix for Safe, Automated Dependency Upgrades
Automatically fix and test dependency updates with socket fix—a new CLI tool that turns CVE alerts into safe, automated upgrades.
string.prototype.padstart
Advanced tools
An ES2017 spec-compliant String.prototype.padStart
shim. Invoke its "shim" method to shim String.prototype.padStart
if it is unavailable.
This package implements the es-shim API interface. It works in an ES3-supported environment and complies with the spec.
Most common usage:
var padStart = require('string.prototype.padstart');
assert(padStart('foo', 5, 'bar') === 'bafoo');
padStart.shim();
assert(padStart('foo', 2) === 'foo'.padStart(2));
Simply clone the repo, npm install
, and run npm test
v3.1.4 - 2022-11-07
dab6400
npmignore
to autogenerate an npmignore file 986e57a
auto-changelog
2ee6cfc
eslint
, @ljharb/eslint-config
, @es-shims/api
, safe-publish-latest
, tape
b1e92b1
define-properties
, es-abstract
92e11e2
eslint
, @ljharb/eslint-config
, aud
, functions-have-names
, tape
509d44d
7769cb6
52a16c8
.push
es-abstract
prepublishOnly
script for npm 7+node/install
instead of node/run
; use codecov
actioneslint
, @ljharb/eslint-config
, @es-shims/api
, aud
, tape
call-bind
, es-abstract
eslint
, @ljharb/eslint-config
, aud
, functions-have-names
, has-strict-mode
, tape
es-abstract
; use call-bind
where applicableeslint
, @ljharb/eslint-config
, functions-have-names
, tape
; add aud
pull_request_target
eventsafe-publish-latest
nyc
on all testsimplementation
test; run es-shim-api
in postlint; use tape
runnerfunction-bind
auto
entry pointes-abstract
(77% bundle size decrease)define-properties
, es-abstract
, function-bind
eslint
, @ljharb/eslint-config
, functions-have-names
, covert
, tape
, @es-shims/api
funding
fieldfunctions-have-names
npx aud
instead of nsp
or npm audit
with hoopsjscs
padStart
/padEnd
per November 2015 TC39 meeting.fillStr
when truncating (#1)io.js
v3.3
, node
v4.1
es-abstract
tape
, jscs
, eslint
, @ljharb/eslint-config
, nsp
max
operation, per https://github.com/ljharb/proposal-string-pad-left-right/pull/2FAQs
ES2017 spec-compliant String.prototype.padStart shim.
The npm package string.prototype.padstart receives a total of 1,191,255 weekly downloads. As such, string.prototype.padstart popularity was classified as popular.
We found that string.prototype.padstart demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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.
Product
Automatically fix and test dependency updates with socket fix—a new CLI tool that turns CVE alerts into safe, automated upgrades.
Security News
CISA denies CVE funding issues amid backlash over a new CVE foundation formed by board members, raising concerns about transparency and program governance.
Product
We’re excited to announce a powerful new capability in Socket: historical data and enhanced analytics.