{"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":"http://registry-npm.ywwl.com/string.prototype.endswith/download/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="}],"size":4845,"noattachment":false,"key":"/string.prototype.endswith/-/string.prototype.endswith-1.0.0.tgz"},"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,"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","publish_time":1590099220690,"_cnpm_publish_time":1590099220690,"dist-tags":{"latest":"1.0.2"}}