{"_id":"string.prototype.endswith","_rev":"3013531","name":"string.prototype.endswith","description":"A robust & optimized `String.prototype.endsWith` polyfill, based on the ECMAScript 6 specification.","dist-tags":{"latest":"1.0.1"},"maintainers":[{"name":"google-wombot","email":""},{"name":"mathias","email":""}],"time":{"modified":"2023-09-19T07:24:12.000Z","created":"2013-12-23T08:44:53.307Z","1.0.1":"2023-09-12T07:53:21.709Z","1.0.0":"2020-05-21T22:13:40.690Z","0.2.0":"2014-04-10T18:25:59.907Z","0.1.0":"2013-12-23T08:44:53.307Z"},"users":{"usex":true},"author":{"name":"Mathias Bynens","url":"https://mathiasbynens.be/"},"repository":{"type":"git","url":"git+https://github.com/mathiasbynens/String.prototype.endsWith.git"},"versions":{"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":{"shasum":"0516e4d447c33000988a627b17ee2e110b459d65","size":8782,"noattachment":false,"key":"/string.prototype.endswith/-/string.prototype.endswith-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/string.prototype.endswith/download/string.prototype.endswith-1.0.1.tgz"},"_npmUser":{"name":"google-wombot","email":"node-team-npm+wombot@google.com"},"directories":{},"maintainers":[{"name":"google-wombot","email":""},{"name":"mathias","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/string.prototype.endswith_1.0.1_1694505201557_0.0433175981605185"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-09-12T07:53:21.709Z","publish_time":1694505201709,"_source_registry_name":"default","_cnpm_publish_time":1694505201709},"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":{"shasum":"e555705efd3fab8fc52088d4d18198a36e9ac983","size":4845,"noattachment":false,"key":"/string.prototype.endswith/-/string.prototype.endswith-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/string.prototype.endswith/download/string.prototype.endswith-1.0.0.tgz"},"maintainers":[{"name":"google-wombot","email":""},{"name":"mathias","email":""}],"_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,"publish_time":1590099220690,"_cnpm_publish_time":1590099220690},"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","size":2690,"noattachment":false,"key":"/string.prototype.endswith/-/string.prototype.endswith-0.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/string.prototype.endswith/download/string.prototype.endswith-0.2.0.tgz"},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"mathias","email":"mathias@qiwi.be"},"maintainers":[{"name":"google-wombot","email":""},{"name":"mathias","email":""}],"publish_time":1397154359907,"_cnpm_publish_time":1397154359907,"_hasShrinkwrap":false},"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"},"readmeFilename":"README.md","_id":"string.prototype.endswith@0.1.0","dist":{"shasum":"948a19e9500edebacc102586cc398a3d3c79e630","size":2587,"noattachment":false,"key":"/string.prototype.endswith/-/string.prototype.endswith-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/string.prototype.endswith/download/string.prototype.endswith-0.1.0.tgz"},"_from":".","_npmVersion":"1.3.21","_npmUser":{"name":"mathias","email":"mathias@qiwi.be"},"maintainers":[{"name":"google-wombot","email":""},{"name":"mathias","email":""}],"publish_time":1387788293307,"_cnpm_publish_time":1387788293307,"_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","_attachments":{},"homepage":"https://mths.be/endswith","bugs":{"url":"https://github.com/mathiasbynens/String.prototype.endsWith/issues"},"license":"MIT"}