3.1.6 • Published 2 years ago

string.prototype.padstart v3.1.6

Weekly downloads
2,456,935
License
MIT
Repository
github
Last release
2 years ago

String.prototype.padStart Version Badge

github actions coverage dependency status dev dependency status License Downloads

npm badge

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));

Tests

Simply clone the repo, npm install, and run npm test

airbnb-js-shimswandering-cli-servicevue-renren-admin-cliawesome-yjl-clidva-webpack-antd-tsalios-cliaddnewer-cli@sbase-theme-cli-demo/cli-utils@sbase-theme-test/cli-utils@erikpham/cli-utilszoos-mp-service@infinitebrahmanuniverse/nolb-string_@saaspe/componentsprint-log@everything-registry/sub-chunk-2836hxt-shen-clisyy-mp-servicewonder-mobile-cliwl-stl-clivue-admin-dbs-clixl-react-componentsxiaohouye-clisuperoauthstoster-work-clisvelte-component-libsyc-clisxpay-clitextlint-formattervue-compmentjivf-cliirounjest-tap-reporterjn_clijslib-utilipaas-cliimt-clihyxtfe-clihomebridge-away-modegzh-cligy-common-clihxunt-clilitchi-mp-servicelitchi-mp-cilinxae-test-cliluban-cli-serviceluban-cli-shared-utilsluban-cli-utilsluban-react-clilzh-vue-clil42-clilaz-cli@wecity/wa@wecity/weda-builder@weepower/cli@ued-toolkit/cli-common-utils@unified-tv/polyfill@unifyux/web-components@therebel/ksuid@vivo-minigame/cli-shared-utils@vize/cli@vzo/cli@vitali_shcherbina/styled-lib@vision-dev/cli@vision-design/cli@xll-fe/cli-shared-utils@yuandana/react-cli@yuandana/react-cli-shared-utilsampc@zlicom/zlia8kaimei-cliawesome-test-cliawesome-cl-clianvaad-jsanvaad-js-gursevakarcadia-js-shimsappcharge-checkout@pkb/shared-utils@podlubnaja/ui-kit@phenixs/cli-shared-utilsgenerator-yellowcakeget-nansfregaturafreemockjsfreehs-clifn-lib-examplegenerator-cowgckitfuse-by-cli@svel/cli-shared-utils@syyfe/syy-utils-node@talentsoft-opensource/widget-display-tool@tccr/clidrizzle-cliearthbound-battle-backgroundsduang-clielegent-clies7-shimet-vue-cliet-vue-cli1
3.1.6

2 years ago

3.1.5

2 years ago

3.1.4

3 years ago

3.1.3

4 years ago

3.1.2

5 years ago

3.1.1

5 years ago

3.1.0

6 years ago

3.0.0

10 years ago