{"_id":"string.prototype.endswith","_rev":"13-276856648c509d1466a416f900a0dde9","name":"string.prototype.endswith","description":"A robust & optimized `String.prototype.endsWith` polyfill, based on the ECMAScript 6 specification.","dist-tags":{"latest":"1.0.2"},"versions":{"0.1.0":{"name":"string.prototype.endswith","version":"0.1.0","description":"A robust & optimized `String.prototype.endsWith` polyfill, based on the ECMAScript 6 specification.","homepage":"http://mths.be/endswith","main":"endswith.js","keywords":["string","endswith","es6","ecmascript","polyfill"],"licenses":[{"type":"MIT","url":"http://mths.be/mit"}],"author":{"name":"Mathias Bynens","url":"http://mathiasbynens.be/"},"repository":{"type":"git","url":"https://github.com/mathiasbynens/String.prototype.endsWith.git"},"bugs":{"url":"https://github.com/mathiasbynens/String.prototype.endsWith/issues"},"files":["LICENSE-MIT.txt","endswith.js"],"directories":{"test":"tests"},"scripts":{"test":"node tests/tests.js","cover":"istanbul cover --report html --verbose --dir coverage tests/tests.js"},"_id":"string.prototype.endswith@0.1.0","dist":{"shasum":"948a19e9500edebacc102586cc398a3d3c79e630","tarball":"https://registry.npmjs.org/string.prototype.endswith/-/string.prototype.endswith-0.1.0.tgz","integrity":"sha512-Ixm9YotJ1L8bzEr916JhLUlUrKxxL2SrynnoenUrEikKEqmpHZgjxTJeYoxKN72hOFKELJGKSscz76YL4W/BUQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC7+miiIvx87oK7oh/Lr7l4J36u7uMUpF2I5UMWlkN6aAIgFhmYtPEI+e6xCP6f/M6/w6ZrsnJaD4fWN/V4w1Vxe6o="}]},"_from":".","_npmVersion":"1.3.21","_npmUser":{"name":"mathias","email":"mathias@qiwi.be"},"maintainers":[{"name":"mathias","email":"mathias@qiwi.be"}]},"0.2.0":{"name":"string.prototype.endswith","version":"0.2.0","description":"A robust & optimized `String.prototype.endsWith` polyfill, based on the ECMAScript 6 specification.","homepage":"http://mths.be/endswith","main":"endswith.js","keywords":["string","endswith","es6","ecmascript","polyfill"],"licenses":[{"type":"MIT","url":"http://mths.be/mit"}],"author":{"name":"Mathias Bynens","url":"http://mathiasbynens.be/"},"repository":{"type":"git","url":"https://github.com/mathiasbynens/String.prototype.endsWith.git"},"bugs":{"url":"https://github.com/mathiasbynens/String.prototype.endsWith/issues"},"files":["LICENSE-MIT.txt","endswith.js"],"directories":{"test":"tests"},"scripts":{"test":"node tests/tests.js","cover":"istanbul cover --report html --verbose --dir coverage tests/tests.js"},"_id":"string.prototype.endswith@0.2.0","dist":{"shasum":"a19c20dee51a98777e9a47e10f09be393b9bba75","tarball":"https://registry.npmjs.org/string.prototype.endswith/-/string.prototype.endswith-0.2.0.tgz","integrity":"sha512-CLb+YN1AleXLWyh88P1R5s2ajz83wF6bWOyxfOXJ7P3ioK/lOnA39VIEcen24/ELWJvU6y8NG6vEmWSOJIVFfQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCzedN5FXHChcRBLFFwlxHQvWEDH95iZqCBvzRCcjp5QQIhAMebCHtfr1Yvfs0gXP6oCR0i22NvuOCYXn1xL8AKIDOz"}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"mathias","email":"mathias@qiwi.be"},"maintainers":[{"name":"mathias","email":"mathias@qiwi.be"}]},"1.0.0":{"name":"string.prototype.endswith","version":"1.0.0","description":"A robust & optimized `String.prototype.endsWith` polyfill, based on the ECMAScript 6 specification.","homepage":"https://mths.be/endswith","main":"index.js","exports":{".":"./index.js","./auto":"./auto.js","./shim":"./shim.js","./getPolyfill":"./getPolyfill.js","./implementation":"./implementation.js","./package.json":"./package.json"},"keywords":["string","endswith","es6","ecmascript","polyfill"],"license":"MIT","author":{"name":"Mathias Bynens","url":"https://mathiasbynens.be/"},"repository":{"type":"git","url":"git+https://github.com/mathiasbynens/String.prototype.endsWith.git"},"bugs":{"url":"https://github.com/mathiasbynens/String.prototype.endsWith/issues"},"scripts":{"pretest":"es-shim-api --bound","test":"npm run tests-only","tests-only":"tape 'tests/*.js'","cover":"istanbul cover --report html --verbose --dir coverage tape 'tests/*.js'"},"dependencies":{"define-properties":"^1.1.3","es-abstract":"^1.17.5"},"devDependencies":{"@es-shims/api":"^2.1.2","function-bind":"^1.1.1","functions-have-names":"^1.2.1","istanbul":"^0.4.5","tape":"^5.0.0"},"gitHead":"e685c86646694a10d1bf19fc0311fb5a93ff71d6","_id":"string.prototype.endswith@1.0.0","_nodeVersion":"12.16.3","_npmVersion":"6.14.4","dist":{"integrity":"sha512-nEkeFVGxS0+qKRndjEx+qPcJYAspYL/oZvVeqoCQeJlmuY8uCjyuxWBptTvlIiPgtfZkJHCgTRFKmSVVU4ZC6Q==","shasum":"e555705efd3fab8fc52088d4d18198a36e9ac983","tarball":"https://registry.npmjs.org/string.prototype.endswith/-/string.prototype.endswith-1.0.0.tgz","fileCount":14,"unpackedSize":19345,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJexv0VCRA9TVsSAnZWagAAaogP/3aaboZaY0jk/29mTvEQ\nvYG/+oU03Ir1F8JQkV2XWsaNqaXcbPiIP+ouX5fHr0YDD3xTWnI0cQfnGy6T\nRAIXSWOAh9+YUpjMNzsG8gnk9d33gir7XJH9nVRCCWCUpdlUkCRsYYe1eMkn\nkymtwhn8F/uxll8eEFtjuYiwZ1FBqpqlm/z6eA+7PQv5JgJgcVmAnklk4uJh\nmSyCUpohoIediHEPb/X2OaROOekohiKiuhy5jGtjWFwWOb0KvQ6eO5tcb76h\nf6e9EwVKeVj0uGgWJPSBWN1taqKeA7eVJVpQGGK3/koPFUF9vjU62YGdJPBh\nzPBzXNjt/alvmjNvfCNdbVPne1bLptQ+6R9kJWeTe05mjel6DOkbeaxWjIBu\naI2JlGWbkYA1rCxVsA3acRw218pX1GbUQkhx1pu/twblP5Fnv6hPx1Lm+dnV\nNAkXKlq8tq2ecVZnuaHF59tUqbddcbqYgTpI+DM4faNUC++P0zMl5xrdHq+e\nBgK+p+q+4VJKZa3GeUNKovOJfAd05/yYZUsPt9O784xEAU86fH8PDqDTQbCp\ns/Y62DdyWXmEGyCckrWe02MAdmIcwJVk0Cq10b7Qph1ewqYDOOOTWIPZNDUP\nv3wI180e3bMqTSVRVkDZbJ1+7G/yoLgp5zRwA6qByyf7rQsD6yFHhoUgtmw5\nf7ex\r\n=Iei3\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDtI+cyfQftZWiKJzQzkx+zV1MpGUQqeFuBduTBzzzwQwIgdGQvz7fCbnPKqjROUtzjfbgGIzH19B+5+YFB5Ko21kQ="}]},"maintainers":[{"email":"mathias@qiwi.be","name":"mathias"},{"email":"nicolo.ribaudo@gmail.com","name":"nicolo-ribaudo"}],"_npmUser":{"name":"nicolo-ribaudo","email":"nicolo.ribaudo@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/string.prototype.endswith_1.0.0_1590099220509_0.7394647679668125"},"_hasShrinkwrap":false},"1.0.1":{"name":"string.prototype.endswith","version":"1.0.1","description":"A robust & optimized `String.prototype.endsWith` polyfill, based on the ECMAScript 6 specification.","homepage":"https://mths.be/endswith","main":"index.js","exports":{".":"./index.js","./auto":"./auto.js","./polyfill":"./polyfill.js","./implementation":"./implementation.js","./shim":"./shim.js","./package.json":"./package.json"},"keywords":["string","endswith","es6","ecmascript","polyfill"],"license":"MIT","author":{"name":"Mathias Bynens","url":"https://mathiasbynens.be/"},"repository":{"type":"git","url":"git+https://github.com/mathiasbynens/String.prototype.endsWith.git"},"bugs":{"url":"https://github.com/mathiasbynens/String.prototype.endsWith/issues"},"scripts":{"lint":"eslint --ext=js,mjs .","postlint":"es-shim-api --bound","pretest":"npm run lint","test":"npm run tests-only","tests-only":"nyc tape 'test/*.js'","posttest":"aud --production","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)\")\""},"dependencies":{"call-bind":"^1.0.2","define-properties":"^1.2.0","es-abstract":"^1.22.1"},"devDependencies":{"@es-shims/api":"^2.4.2","@ljharb/eslint-config":"^21.1.0","aud":"^2.0.3","auto-changelog":"^2.4.0","eslint":"=8.8.0","function-bind":"^1.1.1","functions-have-names":"^1.2.3","nyc":"^10.3.2","tape":"^5.6.6"},"auto-changelog":{"output":"CHANGELOG.md","template":"keepachangelog","unreleased":false,"commitLimit":false,"backfillLimit":false,"hideCredit":true},"_id":"string.prototype.endswith@1.0.1","gitHead":"77cef6c1c0c59fec0d16fd31b8f1d58975965530","_nodeVersion":"18.17.1","_npmVersion":"10.1.0","dist":{"integrity":"sha512-B9wD/vbLWgHGSneRqQj0003KIJ5lSdhCO/vMLDIAAUpGCUz244Zu6KglYtBOYq+vyaq7G4WG1iPt+TFln1Ijzw==","shasum":"0516e4d447c33000988a627b17ee2e110b459d65","tarball":"https://registry.npmjs.org/string.prototype.endswith/-/string.prototype.endswith-1.0.1.tgz","fileCount":23,"unpackedSize":30446,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFidhix8sfbm0gt7lVv/ZNIjq0htcbVBRhTNUEXRR+czAiBqkoeFSA0kTS5zQDJALT3NHVopG4AzbO3aT7HIFxq6IQ=="}]},"_npmUser":{"name":"google-wombot","email":"node-team-npm+wombot@google.com"},"directories":{},"maintainers":[{"name":"mathias","email":"mathias@qiwi.be"},{"name":"google-wombot","email":"node-team-npm+wombot@google.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/string.prototype.endswith_1.0.1_1694505201557_0.0433175981605185"},"_hasShrinkwrap":false},"1.0.2":{"name":"string.prototype.endswith","version":"1.0.2","description":"A robust & optimized `String.prototype.endsWith` polyfill, based on the ECMAScript 6 specification.","homepage":"https://mths.be/endswith","main":"index.js","exports":{".":"./index.js","./auto":"./auto.js","./polyfill":"./polyfill.js","./implementation":"./implementation.js","./shim":"./shim.js","./package.json":"./package.json"},"keywords":["string","endswith","es6","ecmascript","polyfill"],"license":"MIT","author":{"name":"Mathias Bynens","url":"https://mathiasbynens.be/"},"repository":{"type":"git","url":"git+https://github.com/mathiasbynens/String.prototype.endsWith.git"},"bugs":{"url":"https://github.com/mathiasbynens/String.prototype.endsWith/issues"},"scripts":{"lint":"eslint --ext=js,mjs .","postlint":"es-shim-api --bound","pretest":"npm run lint","test":"npm run tests-only","tests-only":"nyc tape 'test/*.js'","posttest":"aud --production","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)\")\""},"dependencies":{"call-bind":"^1.0.7","define-properties":"^1.2.1","es-abstract":"^1.23.2","es-object-atoms":"^1.0.0"},"devDependencies":{"@es-shims/api":"^2.4.2","@ljharb/eslint-config":"^21.1.0","aud":"^2.0.4","auto-changelog":"^2.4.0","eslint":"=8.8.0","function-bind":"^1.1.2","functions-have-names":"^1.2.3","nyc":"^10.3.2","tape":"^5.7.5"},"auto-changelog":{"output":"CHANGELOG.md","template":"keepachangelog","unreleased":false,"commitLimit":false,"backfillLimit":false,"hideCredit":true},"engines":{"node":">= 0.4"},"_id":"string.prototype.endswith@1.0.2","gitHead":"43b28c5f4908343cac35b8cecc3c7ad73e321f7b","_nodeVersion":"20.11.1","_npmVersion":"10.5.0","dist":{"integrity":"sha512-+aZN60xYmLRMyNUA3UUn1ldMz+lpulybdWcXl/HW/TBOTTC0SmHIOyA3n4cOddTR9NeIYRGhZhhFCgcysomo9A==","shasum":"3595f1913a86dbf6b86d31d72314710ffc79158c","tarball":"https://registry.npmjs.org/string.prototype.endswith/-/string.prototype.endswith-1.0.2.tgz","fileCount":23,"unpackedSize":31492,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC4/LucHcyIgBW16huaSmkPGKknxG/4/2mLDubO/2tL4wIgGTIvAKb1iS9lskm/bRESBQ5gD4z97gUp4+020GOW84I="}]},"_npmUser":{"name":"google-wombot","email":"node-team-npm+wombot@google.com"},"directories":{},"maintainers":[{"name":"mathias","email":"mathias@qiwi.be"},{"name":"google-wombot","email":"node-team-npm+wombot@google.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/string.prototype.endswith_1.0.2_1710789610178_0.23269864201552481"},"_hasShrinkwrap":false}},"readme":"# string.prototype.endswith <sup>[![Version Badge][npm-version-svg]][package-url]</sup>\n\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 ESnext spec-compliant `String.prototype.endsWith` shim/polyfill/replacement that works as far down as ES3.\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://tc39.es/ecma262/#sec-string.prototype.endswith).\n\nBecause `String.prototype.endsWith` depends on a receiver (the `this` value), the main export takes the string to operate on as the first argument.\n\nOther polyfills for `String.prototype.endsWith` are available:\n\n* <https://github.com/paulmillr/es6-shim/blob/d8c4ec246a15e7df55da60b7f9b745af84ca9021/es6-shim.js#L175-L184> by [Paul Miller](http://paulmillr.com/) (~~fails some tests: [1](https://github.com/paulmillr/es6-shim/issues/168), [2](https://github.com/paulmillr/es6-shim/issues/175)~~ passes all tests)\n* <https://github.com/google/traceur-compiler/blob/315bdad05d41de46d25337422d66686d63100d7a/src/runtime/polyfills/String.js#L39-L66> by Google (~~[fails a lot of tests](https://github.com/google/traceur-compiler/pull/555)~~ now uses this polyfill and passes all tests)\n\n## Installation\n\nVia [npm](http://npmjs.org/):\n\n```bash\nnpm install string.prototype.endswith\n```\n\nThen, in [Node.js](http://nodejs.org/):\n\n```js\nvar endsWith = require('string.prototype.endswith');\n```\n\n```html\n<script src=\"https://bundle.run/string.prototype.endswith\"></script>\n```\n\n> **NOTE**: It's recommended that you install this module using a package manager\n> such as `npm`, because loading multiple polyfills from a CDN (such as `bundle.run`)\n> will lead to duplicated code.\n\n## Notes\n\nPolyfills + test suites for [`String.prototype.startsWith`](https://mths.be/startswith) and [`String.prototype.contains`](https://mths.be/contains) are available, too.\n\n## Author\n\n| [![twitter/mathias](https://gravatar.com/avatar/24e08a9ea84deb17ae121074d0f17125?s=70)](https://twitter.com/mathias \"Follow @mathias on Twitter\") |\n|---|\n| [Mathias Bynens](https://mathiasbynens.be/) |\n\n## License\n\nThis polyfill is available under the [MIT](https://mths.be/mit) license.\n\n## Tests\nSimply clone the repo, `npm install`, and run `npm test`\n\n[package-url]: https://npmjs.org/package/string.prototype.endswith\n[npm-version-svg]: https://versionbadg.es/es-shims/String.prototype.endsWith.svg\n[deps-svg]: https://david-dm.org/es-shims/String.prototype.endsWith.svg\n[deps-url]: https://david-dm.org/es-shims/String.prototype.endsWith\n[dev-deps-svg]: https://david-dm.org/es-shims/String.prototype.endsWith/dev-status.svg\n[dev-deps-url]: https://david-dm.org/es-shims/String.prototype.endsWith#info=devDependencies\n[npm-badge-png]: https://nodei.co/npm/string.prototype.endswith.png?downloads=true&stars=true\n[license-image]: https://img.shields.io/npm/l/string.prototype.endswith.svg\n[license-url]: LICENSE\n[downloads-image]: https://img.shields.io/npm/dm/string.prototype.endswith.svg\n[downloads-url]: https://npm-stat.com/charts.html?package=string.prototype.endswith\n","maintainers":[{"name":"mathias","email":"mathias@qiwi.be"},{"name":"google-wombot","email":"node-team-npm+wombot@google.com"}],"time":{"modified":"2024-03-18T19:20:11.352Z","created":"2013-12-23T08:44:53.307Z","0.1.0":"2013-12-23T08:44:53.307Z","0.2.0":"2014-04-10T18:25:59.907Z","1.0.0":"2020-05-21T22:13:40.690Z","1.0.1":"2023-09-12T07:53:21.709Z","1.0.2":"2024-03-18T19:20:10.374Z"},"homepage":"https://mths.be/endswith","keywords":["string","endswith","es6","ecmascript","polyfill"],"repository":{"type":"git","url":"git+https://github.com/mathiasbynens/String.prototype.endsWith.git"},"author":{"name":"Mathias Bynens","url":"https://mathiasbynens.be/"},"bugs":{"url":"https://github.com/mathiasbynens/String.prototype.endsWith/issues"},"readmeFilename":"README.md","users":{"usex":true},"license":"MIT"}