3.1.6 • Published 3 months ago

string.prototype.padstart v3.1.6

Weekly downloads
2,456,935
License
MIT
Repository
github
Last release
3 months 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-2836google-calendar-dayviewlinxae-test-clil42-clilaz-clilitchi-mp-cilitchi-mp-servicelzh-vue-cliluban-cli-serviceluban-cli-shared-utilsluban-cli-utilsluban-react-cligzh-cligy-common-clihomebridge-away-modejest-tap-reporterjn_clijivf-clijslib-utilipaas-cliirounhxt-shen-clihxunt-clihyxtfe-cliimt-climingyong_climockhsmintc-clinbsp-clinbsp-web-climzo-clinodeppt-shared-utilsnpm-test-erlinodex-cli@sealui/cli@phenixs/cli-shared-utils@pkb/shared-utils@podlubnaja/ui-kit@therebel/ksuid@ued-toolkit/cli-common-utils@svel/cli-shared-utils@syyfe/syy-utils-node@talentsoft-opensource/widget-display-tool@tccr/cli@unified-tv/polyfill@unifyux/web-components@shopbase-internal-theme/cli-utils@shopbase-theme-test/cli-utils@shopbase-theme/cli-utils@shopbasetheme-test/cli-utils@shuyun-ep-team/cli@skeetboothppq/component-library@spreact/cli-shared-utils@shivarajapple/first-library@vitali_shcherbina/styled-lib@vivo-minigame/cli-shared-utils@vize/cli@vision-design/cli@vision-dev/cliwebpack-page-clivuepress-theme-libra-clivue-trwl-stl-clixiaohouye-clixl-react-componentswonder-mobile-clixpfe-clizillow-js-shimspnpm-default-reporterpokedex-clipluraxparvan_reactjs_componentsparvan_componentstextlint-formattersyc-clisxpay-clisyy-mp-servicesuperoauthsvelte-component-libom-clireact-doraemonqzone-cliquaeratidquick-js-clireact-form-component-libraryrnfs-cli
3.1.6

3 months ago

3.1.5

9 months ago

3.1.4

2 years ago

3.1.3

3 years ago

3.1.2

3 years ago

3.1.1

4 years ago

3.1.0

4 years ago

3.0.0

9 years ago