{"_id":"string.prototype.includes","_rev":"3919327","name":"string.prototype.includes","description":"A robust & optimized `String.prototype.includes` polyfill, based on the ECMAScript 6 specification.","dist-tags":{"latest":"2.0.1"},"maintainers":[{"name":"mathias","email":""},{"name":"nicolo-ribaudo","email":""}],"time":{"modified":"2025-09-01T01:22:09.000Z","created":"2014-11-20T08:26:49.067Z","2.0.1":"2024-10-15T07:06:28.745Z","2.0.0":"2020-05-21T22:07:24.924Z","1.0.0":"2014-11-20T08:26:49.067Z"},"users":{},"author":{"name":"Mathias Bynens","url":"https://mathiasbynens.be/"},"repository":{"type":"git","url":"git+https://github.com/mathiasbynens/String.prototype.includes.git"},"versions":{"2.0.1":{"name":"string.prototype.includes","version":"2.0.1","description":"A robust & optimized `String.prototype.includes` polyfill, based on the ECMAScript 6 specification.","homepage":"https://mths.be/includes","main":"index.js","exports":{".":"./index.js","./auto":"./auto.js","./polyfill":"./polyfill.js","./implementation":"./implementation.js","./shim":"./shim.js","./package.json":"./package.json"},"keywords":["string","includes","es6","ecmascript","polyfill"],"license":"MIT","author":{"name":"Mathias Bynens","url":"https://mathiasbynens.be/"},"repository":{"type":"git","url":"git+https://github.com/mathiasbynens/String.prototype.includes.git"},"bugs":{"url":"https://github.com/mathiasbynens/String.prototype.includes/issues"},"scripts":{"lint":"eslint --ext=js,mjs .","postlint":"es-shim-api --bound","pretest":"npm run lint","test":"npm run tests-only","tests-only":"tape 'tests/*.js'","posttest":"npx npm@'>=10.2' audit --production","cover":"istanbul cover --report html --verbose --dir coverage tape 'tests/*.js'"},"dependencies":{"call-bind":"^1.0.7","define-properties":"^1.2.1","es-abstract":"^1.23.3"},"devDependencies":{"@es-shims/api":"^2.5.1","@ljharb/eslint-config":"^21.1.1","eslint":"=8.8.0","functions-have-names":"^1.2.3","istanbul":"^0.4.5","mock-property":"^1.1.0","tape":"^5.9.0"},"engines":{"node":">= 0.4"},"directories":{"test":"tests"},"_id":"string.prototype.includes@2.0.1","gitHead":"619300c92e48fe273a535b6de36a9336e38f8f17","_nodeVersion":"20.18.0","_npmVersion":"10.8.3","dist":{"shasum":"eceef21283640761a81dbe16d6c7171a4edf7d92","size":5514,"noattachment":false,"key":"/string.prototype.includes/-/string.prototype.includes-2.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/string.prototype.includes/download/string.prototype.includes-2.0.1.tgz"},"_npmUser":{"name":"nicolo-ribaudo","email":"nicolo.ribaudo@gmail.com"},"maintainers":[{"name":"mathias","email":""},{"name":"nicolo-ribaudo","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/string.prototype.includes_2.0.1_1728975988546_0.5359719366184932"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-10-15T07:06:28.745Z","publish_time":1728975988745,"_source_registry_name":"default","_cnpm_publish_time":1728975988745},"2.0.0":{"name":"string.prototype.includes","version":"2.0.0","description":"A robust & optimized `String.prototype.includes` polyfill, based on the ECMAScript 6 specification.","homepage":"https://mths.be/includes","main":"index.js","exports":{".":"./index.js","./auto":"./auto.js","./shim":"./shim.js","./getPolyfill":"./getPolyfill.js","./implementation":"./implementation.js","./package.json":"./package.json"},"keywords":["string","includes","es6","ecmascript","polyfill"],"license":"MIT","author":{"name":"Mathias Bynens","url":"https://mathiasbynens.be/"},"repository":{"type":"git","url":"git+https://github.com/mathiasbynens/String.prototype.includes.git"},"bugs":{"url":"https://github.com/mathiasbynens/String.prototype.includes/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":"e0ce68856b4a2241a08d1b830140577c0cad792b","_id":"string.prototype.includes@2.0.0","_nodeVersion":"12.16.3","_npmVersion":"6.14.4","dist":{"shasum":"8986d57aee66d5460c144620a6d873778ad7289f","size":4536,"noattachment":false,"key":"/string.prototype.includes/-/string.prototype.includes-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/string.prototype.includes/download/string.prototype.includes-2.0.0.tgz"},"maintainers":[{"name":"mathias","email":""},{"name":"nicolo-ribaudo","email":""}],"_npmUser":{"name":"nicolo-ribaudo","email":"nicolo.ribaudo@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/string.prototype.includes_2.0.0_1590098844785_0.14042737134226413"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2021-12-20T17:00:54.204Z","publish_time":1590098844924,"_cnpm_publish_time":1590098844924},"1.0.0":{"name":"string.prototype.includes","version":"1.0.0","description":"A robust & optimized `String.prototype.includes` polyfill, based on the ECMAScript 6 specification.","homepage":"https://mths.be/includes","main":"includes.js","keywords":["string","includes","es6","ecmascript","polyfill"],"license":"MIT","author":{"name":"Mathias Bynens","url":"https://mathiasbynens.be/"},"repository":{"type":"git","url":"https://github.com/mathiasbynens/String.prototype.includes.git"},"bugs":{"url":"https://github.com/mathiasbynens/String.prototype.includes/issues"},"files":["LICENSE-MIT.txt","includes.js"],"scripts":{"test":"node tests/tests.js","cover":"istanbul cover --report html --verbose --dir coverage tests/tests.js"},"gitHead":"caa4a5561f8520eecd6f7cc743e8f9aecb6a55a3","_id":"string.prototype.includes@1.0.0","_shasum":"829361cef8ffb927def93ccd5373d9dcc37ee7af","_from":".","_npmVersion":"2.1.6","_nodeVersion":"0.10.32","_npmUser":{"name":"mathias","email":"mathias@qiwi.be"},"maintainers":[{"name":"mathias","email":""},{"name":"nicolo-ribaudo","email":""}],"dist":{"shasum":"829361cef8ffb927def93ccd5373d9dcc37ee7af","size":2636,"noattachment":false,"key":"/string.prototype.includes/-/string.prototype.includes-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/string.prototype.includes/download/string.prototype.includes-1.0.0.tgz"},"directories":{},"_cnpmcore_publish_time":"2021-12-20T17:00:53.142Z","publish_time":1416472009067,"_cnpm_publish_time":1416472009067}},"readme":"# ES6 `String.prototype.includes` polyfill [![Build status](https://travis-ci.org/mathiasbynens/String.prototype.includes.svg?branch=master)](https://travis-ci.org/mathiasbynens/String.prototype.includes)\n\nA robust & optimized polyfill for [the `String.prototype.includes` method (previously known as `String.prototype.contains`) in ECMAScript 6](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-string.prototype.includes).\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.includes).\n\nOther polyfills for `String.prototype.includes` are available:\n\n* <https://github.com/paulmillr/es6-shim/blob/d8c4ec246a15e7df55da60b7f9b745af84ca9021/es6-shim.js#L186-L190> by [Paul Miller](http://paulmillr.com/) (~~[fails some tests](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#L68-L86> by Google (~~[fails a lot of tests](https://github.com/google/traceur-compiler/pull/556)~~ now uses this polyfill and passes all tests)\n\n## Installation\n\nVia [npm](http://npmjs.org/):\n\n```bash\nnpm install string.prototype.includes\n```\n\nThen, in [Node.js](http://nodejs.org/):\n\n```js\nvar includes = require('string.prototype.includes');\n```\n\nIn a browser:\n\n```html\n<script src=\"https://bundle.run/string.prototype.includes\"></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.endsWith`](https://mths.be/endswith) 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","_attachments":{},"homepage":"https://mths.be/includes","bugs":{"url":"https://github.com/mathiasbynens/String.prototype.includes/issues"},"license":"MIT"}