{"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":"http://registry-npm.ywwl.com/string.prototype.endswith/download/string.prototype.endswith-0.2.0.tgz","integrity":"sha512-CLb+YN1AleXLWyh88P1R5s2ajz83wF6bWOyxfOXJ7P3ioK/lOnA39VIEcen24/ELWJvU6y8NG6vEmWSOJIVFfQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCzedN5FXHChcRBLFFwlxHQvWEDH95iZqCBvzRCcjp5QQIhAMebCHtfr1Yvfs0gXP6oCR0i22NvuOCYXn1xL8AKIDOz"}],"size":2690,"noattachment":false,"key":"/string.prototype.endswith/-/string.prototype.endswith-0.2.0.tgz"},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"mathias","email":"mathias@qiwi.be"},"maintainers":[{"name":"mathias","email":"mathias@qiwi.be"}],"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":1397154359907,"_cnpm_publish_time":1397154359907,"dist-tags":{"latest":"1.0.2"}}