{"_id":"string.prototype.padstart","_rev":"2933267","name":"string.prototype.padstart","description":"ES2017 spec-compliant String.prototype.padStart shim.","dist-tags":{"latest":"3.1.4"},"maintainers":[{"name":"ljharb","email":""}],"time":{"modified":"2023-03-27T01:53:35.000Z","created":"2015-11-17T19:34:33.557Z","3.1.4":"2022-11-07T19:04:27.505Z","3.1.3":"2021-10-05T01:00:46.559Z","3.1.2":"2021-02-20T22:38:15.001Z","3.1.1":"2020-11-21T21:35:03.773Z","3.1.0":"2019-12-14T08:31:46.021Z","3.0.0":"2015-11-17T19:34:33.557Z"},"users":{"writech":true,"tedyhy":true},"author":{"name":"Jordan Harband","email":"ljharb@gmail.com"},"repository":{"type":"git","url":"git://github.com/es-shims/String.prototype.padStart.git"},"versions":{"3.1.4":{"name":"string.prototype.padstart","version":"3.1.4","author":{"name":"Jordan Harband","email":"ljharb@gmail.com"},"funding":{"url":"https://github.com/sponsors/ljharb"},"description":"ES2017 spec-compliant String.prototype.padStart shim.","license":"MIT","main":"index.js","scripts":{"prepack":"npmignore --auto --commentLines=autogenerated","prepublish":"not-in-publish || npm run prepublishOnly","prepublishOnly":"safe-publish-latest","pretest":"npm run lint","test":"npm run tests-only","posttest":"aud --production","tests-only":"nyc tape 'test/**/*.js'","lint":"eslint --ext=js,mjs .","postlint":"es-shim-api --bound","version":"auto-changelog && git add CHANGELOG.md","postversion":"auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\""},"repository":{"type":"git","url":"git://github.com/es-shims/String.prototype.padStart.git"},"keywords":["String.prototype.padLeft","String.prototype.padStart","string","ES8","ES2017","shim","trim","padLeft","padRight","padStart","padEnd","polyfill","es-shim API"],"dependencies":{"call-bind":"^1.0.2","define-properties":"^1.1.4","es-abstract":"^1.20.4"},"devDependencies":{"@es-shims/api":"^2.2.3","@ljharb/eslint-config":"^21.0.0","aud":"^2.0.1","auto-changelog":"^2.4.0","eslint":"=8.8.0","functions-have-names":"^1.2.3","has-strict-mode":"^1.0.1","in-publish":"^2.0.1","npmignore":"^0.3.0","nyc":"^10.3.2","safe-publish-latest":"^2.0.0","tape":"^5.6.1"},"testling":{"files":"test/index.js","browsers":["iexplore/9.0..latest","firefox/4.0..6.0","firefox/15.0..latest","firefox/nightly","chrome/4.0..10.0","chrome/20.0..latest","chrome/canary","opera/11.6..latest","opera/next","safari/5.0..latest","ipad/6.0..latest","iphone/6.0..latest","android-browser/4.2"]},"engines":{"node":">= 0.4"},"auto-changelog":{"output":"CHANGELOG.md","template":"keepachangelog","unreleased":false,"commitLimit":false,"backfillLimit":false,"hideCredit":true,"startingVersion":"3.1.4"},"publishConfig":{"ignore":[".github/workflows"]},"gitHead":"b53876d51400cf152eed614294ee9fbe7c44fb99","bugs":{"url":"https://github.com/es-shims/String.prototype.padStart/issues"},"homepage":"https://github.com/es-shims/String.prototype.padStart#readme","_id":"string.prototype.padstart@3.1.4","_nodeVersion":"19.0.1","_npmVersion":"8.19.2","dist":{"shasum":"4842d58a09df2addac23cf0b325ce9f087978e90","size":6202,"noattachment":false,"key":"/string.prototype.padstart/-/string.prototype.padstart-3.1.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/string.prototype.padstart/download/string.prototype.padstart-3.1.4.tgz"},"_npmUser":{"name":"ljharb","email":"ljharb@gmail.com"},"directories":{},"maintainers":[{"name":"ljharb","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/string.prototype.padstart_3.1.4_1667847867314_0.5787240978220156"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-11-07T19:10:38.270Z","publish_time":1667847867505,"_cnpm_publish_time":1667847867505},"3.1.3":{"name":"string.prototype.padstart","version":"3.1.3","author":{"name":"Jordan Harband","email":"ljharb@gmail.com"},"funding":{"url":"https://github.com/sponsors/ljharb"},"description":"ES2017 spec-compliant String.prototype.padStart shim.","license":"MIT","main":"index.js","scripts":{"prepublish":"not-in-publish || npm run prepublishOnly","prepublishOnly":"safe-publish-latest","pretest":"npm run lint","test":"npm run tests-only","posttest":"aud --production","tests-only":"nyc tape 'test/**/*.js'","lint":"eslint .","postlint":"es-shim-api --bound"},"repository":{"type":"git","url":"git://github.com/es-shims/String.prototype.padStart.git"},"keywords":["String.prototype.padLeft","String.prototype.padStart","string","ES8","ES2017","shim","trim","padLeft","padRight","padStart","padEnd","polyfill","es-shim API"],"dependencies":{"call-bind":"^1.0.2","define-properties":"^1.1.3","es-abstract":"^1.19.1"},"devDependencies":{"@es-shims/api":"^2.2.2","@ljharb/eslint-config":"^18.0.0","aud":"^1.1.5","eslint":"^7.32.0","functions-have-names":"^1.2.2","has-strict-mode":"^1.0.1","nyc":"^10.3.2","safe-publish-latest":"^1.1.4","tape":"^5.3.1"},"testling":{"files":"test/index.js","browsers":["iexplore/9.0..latest","firefox/4.0..6.0","firefox/15.0..latest","firefox/nightly","chrome/4.0..10.0","chrome/20.0..latest","chrome/canary","opera/11.6..latest","opera/next","safari/5.0..latest","ipad/6.0..latest","iphone/6.0..latest","android-browser/4.2"]},"engines":{"node":">= 0.4"},"gitHead":"0011bdd8b5d6954e592071144fef0794590b018c","bugs":{"url":"https://github.com/es-shims/String.prototype.padStart/issues"},"homepage":"https://github.com/es-shims/String.prototype.padStart#readme","_id":"string.prototype.padstart@3.1.3","_nodeVersion":"16.10.0","_npmVersion":"7.24.0","dist":{"shasum":"4551d0117d9501692ec6000b15056ac3f816cfa5","size":5428,"noattachment":false,"key":"/string.prototype.padstart/-/string.prototype.padstart-3.1.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/string.prototype.padstart/download/string.prototype.padstart-3.1.3.tgz"},"_npmUser":{"name":"ljharb","email":"ljharb@gmail.com"},"directories":{},"maintainers":[{"name":"ljharb","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/string.prototype.padstart_3.1.3_1633395646410_0.5137416882721644"},"_hasShrinkwrap":false,"publish_time":1633395646559,"_cnpm_publish_time":1633395646559},"3.1.2":{"name":"string.prototype.padstart","version":"3.1.2","author":{"name":"Jordan Harband","email":"ljharb@gmail.com"},"funding":{"url":"https://github.com/sponsors/ljharb"},"description":"ES2017 spec-compliant String.prototype.padStart shim.","license":"MIT","main":"index.js","scripts":{"prepublish":"safe-publish-latest","pretest":"npm run lint","test":"npm run tests-only","posttest":"aud --production","tests-only":"nyc tape 'test/**/*.js'","lint":"eslint .","postlint":"es-shim-api --bound"},"repository":{"type":"git","url":"git://github.com/es-shims/String.prototype.padStart.git"},"keywords":["String.prototype.padLeft","String.prototype.padStart","string","ES8","ES2017","shim","trim","padLeft","padRight","padStart","padEnd","polyfill","es-shim API"],"dependencies":{"call-bind":"^1.0.2","define-properties":"^1.1.3","es-abstract":"^1.18.0-next.2"},"devDependencies":{"@es-shims/api":"^2.1.2","@ljharb/eslint-config":"^17.5.1","aud":"^1.1.4","eslint":"^7.20.0","functions-have-names":"^1.2.2","has-strict-mode":"^1.0.1","nyc":"^10.3.2","safe-publish-latest":"^1.1.4","tape":"^5.2.0"},"testling":{"files":"test/index.js","browsers":["iexplore/9.0..latest","firefox/4.0..6.0","firefox/15.0..latest","firefox/nightly","chrome/4.0..10.0","chrome/20.0..latest","chrome/canary","opera/11.6..latest","opera/next","safari/5.0..latest","ipad/6.0..latest","iphone/6.0..latest","android-browser/4.2"]},"engines":{"node":">= 0.4"},"gitHead":"e87a1588f2d0f77bc180d891358e8e077d43a9a1","bugs":{"url":"https://github.com/es-shims/String.prototype.padStart/issues"},"homepage":"https://github.com/es-shims/String.prototype.padStart#readme","_id":"string.prototype.padstart@3.1.2","_nodeVersion":"14.15.5","_npmVersion":"6.14.11","dist":{"shasum":"f9b9ce66bedd7c06acb40ece6e34c6046e1a019d","size":5292,"noattachment":false,"key":"/string.prototype.padstart/-/string.prototype.padstart-3.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/string.prototype.padstart/download/string.prototype.padstart-3.1.2.tgz"},"_npmUser":{"name":"ljharb","email":"ljharb@gmail.com"},"directories":{},"maintainers":[{"name":"ljharb","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/string.prototype.padstart_3.1.2_1613860694873_0.20052171133197194"},"_hasShrinkwrap":false,"publish_time":1613860695001,"_cnpm_publish_time":1613860695001},"3.1.1":{"name":"string.prototype.padstart","version":"3.1.1","author":{"name":"Jordan Harband","email":"ljharb@gmail.com"},"funding":{"url":"https://github.com/sponsors/ljharb"},"description":"ES2017 spec-compliant String.prototype.padStart shim.","license":"MIT","main":"index.js","scripts":{"prepublish":"safe-publish-latest","pretest":"npm run lint","test":"npm run tests-only","posttest":"aud --production","tests-only":"nyc tape 'test/**/*.js'","lint":"eslint .","postlint":"es-shim-api --bound"},"repository":{"type":"git","url":"git://github.com/es-shims/String.prototype.padStart.git"},"keywords":["String.prototype.padLeft","String.prototype.padStart","string","ES8","ES2017","shim","trim","padLeft","padRight","padStart","padEnd","polyfill","es-shim API"],"dependencies":{"call-bind":"^1.0.0","define-properties":"^1.1.3","es-abstract":"^1.18.0-next.1"},"devDependencies":{"@es-shims/api":"^2.1.2","@ljharb/eslint-config":"^17.2.0","aud":"^1.1.3","eslint":"^7.14.0","functions-have-names":"^1.2.1","has-strict-mode":"^1.0.0","nyc":"^10.3.2","safe-publish-latest":"^1.1.4","tape":"^5.0.1"},"testling":{"files":"test/index.js","browsers":["iexplore/9.0..latest","firefox/4.0..6.0","firefox/15.0..latest","firefox/nightly","chrome/4.0..10.0","chrome/20.0..latest","chrome/canary","opera/11.6..latest","opera/next","safari/5.0..latest","ipad/6.0..latest","iphone/6.0..latest","android-browser/4.2"]},"engines":{"node":">= 0.4"},"gitHead":"bade5be07153a3211dc82358286f5e4ba1c79bc9","bugs":{"url":"https://github.com/es-shims/String.prototype.padStart/issues"},"homepage":"https://github.com/es-shims/String.prototype.padStart#readme","_id":"string.prototype.padstart@3.1.1","_nodeVersion":"14.15.0","_npmVersion":"6.14.8","dist":{"shasum":"5a1ce79d21899073f630895cb9c7ce7f5acf51d6","size":6119,"noattachment":false,"key":"/string.prototype.padstart/-/string.prototype.padstart-3.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/string.prototype.padstart/download/string.prototype.padstart-3.1.1.tgz"},"_npmUser":{"name":"ljharb","email":"ljharb@gmail.com"},"directories":{},"maintainers":[{"name":"ljharb","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/string.prototype.padstart_3.1.1_1605994503644_0.6892001094889135"},"_hasShrinkwrap":false,"publish_time":1605994503773,"_cnpm_publish_time":1605994503773},"3.1.0":{"name":"string.prototype.padstart","version":"3.1.0","author":{"name":"Jordan Harband","email":"ljharb@gmail.com"},"funding":{"url":"https://github.com/sponsors/ljharb"},"description":"ES2017 spec-compliant String.prototype.padStart shim.","license":"MIT","main":"index.js","scripts":{"pretest":"npm run --silent lint","test":"npm run --silent tests-only","posttest":"npx aud","tests-only":"es-shim-api --bound && npm run --silent test:shimmed && npm run --silent test:module","test:shimmed":"node test/shimmed.js","test:module":"node test/index.js","coverage":"covert test/*.js","coverage-quiet":"covert test/*.js --quiet","lint":"eslint ."},"repository":{"type":"git","url":"git://github.com/es-shims/String.prototype.padStart.git"},"keywords":["String.prototype.padLeft","String.prototype.padStart","string","ES8","ES2017","shim","trim","padLeft","padRight","padStart","padEnd","polyfill","es-shim API"],"dependencies":{"define-properties":"^1.1.3","es-abstract":"^1.17.0-next.1"},"devDependencies":{"@es-shims/api":"^2.1.2","@ljharb/eslint-config":"^15.0.2","covert":"^1.1.1","eslint":"^6.7.2","function-bind":"^1.1.1","functions-have-names":"^1.2.0","tape":"^4.11.0"},"testling":{"files":"test/index.js","browsers":["iexplore/9.0..latest","firefox/4.0..6.0","firefox/15.0..latest","firefox/nightly","chrome/4.0..10.0","chrome/20.0..latest","chrome/canary","opera/11.6..latest","opera/next","safari/5.0..latest","ipad/6.0..latest","iphone/6.0..latest","android-browser/4.2"]},"engines":{"node":">= 0.4"},"gitHead":"6fc0794865c5a36bd05562989015e8f1a9e97ec7","bugs":{"url":"https://github.com/es-shims/String.prototype.padStart/issues"},"homepage":"https://github.com/es-shims/String.prototype.padStart#readme","_id":"string.prototype.padstart@3.1.0","_nodeVersion":"13.3.0","_npmVersion":"6.13.1","dist":{"shasum":"b47c087540d0710be5a49375751a0a627bd4ff90","size":4887,"noattachment":false,"key":"/string.prototype.padstart/-/string.prototype.padstart-3.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/string.prototype.padstart/download/string.prototype.padstart-3.1.0.tgz"},"maintainers":[{"name":"ljharb","email":""}],"_npmUser":{"name":"ljharb","email":"ljharb@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/string.prototype.padstart_3.1.0_1576312305854_0.39197112184489913"},"_hasShrinkwrap":false,"publish_time":1576312306021,"_cnpm_publish_time":1576312306021},"3.0.0":{"name":"string.prototype.padstart","version":"3.0.0","author":{"name":"Jordan Harband"},"description":"ES7 spec-compliant String.prototype.padStart shim.","license":"MIT","main":"index.js","scripts":{"test":"npm run lint && npm run tests-only && npm run security","tests-only":"es-shim-api --bound && npm run test:shimmed && npm run test:module","test:shimmed":"node test/shimmed.js","test:module":"node test/index.js","coverage":"covert test/*.js","coverage-quiet":"covert test/*.js --quiet","lint":"npm run jscs && npm run eslint","eslint":"eslint test/*.js *.js","jscs":"jscs test/*.js *.js","security":"nsp check"},"repository":{"type":"git","url":"git://github.com/es-shims/String.prototype.padStart.git"},"keywords":["String.prototype.padLeft","String.prototype.padStart","string","ES7","shim","trim","padLeft","padRight","padStart","padEnd","polyfill","es-shim API"],"dependencies":{"define-properties":"^1.1.2","es-abstract":"^1.4.3","function-bind":"^1.0.2"},"devDependencies":{"tape":"^4.2.2","covert":"^1.1.0","jscs":"^2.5.1","nsp":"^2.0.2","eslint":"^1.9.0","@ljharb/eslint-config":"^1.6.0","@es-shims/api":"^1.0.0"},"testling":{"files":"test/index.js","browsers":["iexplore/9.0..latest","firefox/4.0..6.0","firefox/15.0..latest","firefox/nightly","chrome/4.0..10.0","chrome/20.0..latest","chrome/canary","opera/11.6..latest","opera/next","safari/5.0..latest","ipad/6.0..latest","iphone/6.0..latest","android-browser/4.2"]},"engines":{"node":">= 0.4"},"gitHead":"b8c3dcb135351d6fe322082d8be98f8f3cc8ff62","bugs":{"url":"https://github.com/es-shims/String.prototype.padStart/issues"},"homepage":"https://github.com/es-shims/String.prototype.padStart#readme","_id":"string.prototype.padstart@3.0.0","_shasum":"5bcfad39f4649bb2d031292e19bcf0b510d4b242","_from":".","_npmVersion":"3.3.10","_nodeVersion":"5.0.0","_npmUser":{"name":"ljharb","email":"ljharb@gmail.com"},"dist":{"shasum":"5bcfad39f4649bb2d031292e19bcf0b510d4b242","size":5991,"noattachment":false,"key":"/string.prototype.padstart/-/string.prototype.padstart-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/string.prototype.padstart/download/string.prototype.padstart-3.0.0.tgz"},"maintainers":[{"name":"ljharb","email":""}],"directories":{},"publish_time":1447788873557,"_cnpm_publish_time":1447788873557,"_hasShrinkwrap":false}},"readme":"# String.prototype.padStart <sup>[![Version Badge][npm-version-svg]][package-url]</sup>\n\n[![github actions][actions-image]][actions-url]\n[![coverage][codecov-image]][codecov-url]\n[![dependency status][deps-svg]][deps-url]\n[![dev dependency status][dev-deps-svg]][dev-deps-url]\n[![License][license-image]][license-url]\n[![Downloads][downloads-image]][downloads-url]\n\n[![npm badge][npm-badge-png]][package-url]\n\nAn ES2017 spec-compliant `String.prototype.padStart` shim. Invoke its \"shim\" method to shim `String.prototype.padStart` if it is unavailable.\n\nThis package implements the [es-shim API](https://github.com/es-shims/api) interface. It works in an ES3-supported environment and complies with the [spec](https://github.com/tc39/ecma262/pull/581).\n\nMost common usage:\n```js\nvar padStart = require('string.prototype.padstart');\n\nassert(padStart('foo', 5, 'bar') === 'bafoo');\n\npadStart.shim();\n\nassert(padStart('foo', 2) === 'foo'.padStart(2));\n```\n\n## Tests\nSimply clone the repo, `npm install`, and run `npm test`\n\n[package-url]: https://npmjs.com/package/string.prototype.padstart\n[npm-version-svg]: http://versionbadg.es/es-shims/String.prototype.padStart.svg\n[travis-svg]: https://travis-ci.org/es-shims/String.prototype.padStart.svg\n[travis-url]: https://travis-ci.org/es-shims/String.prototype.padStart\n[deps-svg]: https://david-dm.org/es-shims/String.prototype.padStart.svg\n[deps-url]: https://david-dm.org/es-shims/String.prototype.padStart\n[dev-deps-svg]: https://david-dm.org/es-shims/String.prototype.padStart/dev-status.svg\n[dev-deps-url]: https://david-dm.org/es-shims/String.prototype.padStart#info=devDependencies\n[npm-badge-png]: https://nodei.co/npm/string.prototype.padstart.png?downloads=true&stars=true\n[license-image]: http://img.shields.io/npm/l/string.prototype.padstart.svg\n[license-url]: LICENSE\n[downloads-image]: http://img.shields.io/npm/dm/string.prototype.padstart.svg\n[downloads-url]: http://npm-stat.com/charts.html?package=string.prototype.padstart\n[codecov-image]: https://codecov.io/gh/es-shims/String.prototype.padStart/branch/main/graphs/badge.svg\n[codecov-url]: https://app.codecov.io/gh/es-shims/String.prototype.padStart/\n[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/es-shims/String.prototype.padStart\n[actions-url]: https://github.com/es-shims/String.prototype.padStart/actions\n","_attachments":{},"homepage":"https://github.com/es-shims/String.prototype.padStart#readme","bugs":{"url":"https://github.com/es-shims/String.prototype.padStart/issues"},"license":"MIT"}