{"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":{"integrity":"sha512-o7+c9bW6zpAdJHTtujeePODAhkuicdAryFsfVKwA+wGw89wJ4GTY484WTucM9hLtDEOpOvI+aHnzqnC5lHp4Rg==","shasum":"eceef21283640761a81dbe16d6c7171a4edf7d92","tarball":"http://registry-npm.ywwl.com/string.prototype.includes/download/string.prototype.includes-2.0.1.tgz","fileCount":21,"unpackedSize":16188,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGJU4YCCria2bVxBtCALfzWPAqhx6w8OTC115Iq3AKenAiAnJ0D9vQTR/y6qgEaRN49swuZGLAk5C4F+ZMk3sCtGFg=="}],"size":5514,"noattachment":false,"key":"/string.prototype.includes/-/string.prototype.includes-2.0.1.tgz"},"_npmUser":{"name":"nicolo-ribaudo","email":"nicolo.ribaudo@gmail.com"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/string.prototype.includes_2.0.1_1728975988546_0.5359719366184932"},"_hasShrinkwrap":false,"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","publish_time":1728975988745,"maintainers":[{"name":"mathias","email":"mathias@qiwi.be"},{"name":"nicolo-ribaudo","email":"nicolo.ribaudo@gmail.com"}],"_cnpm_publish_time":1728975988745,"dist-tags":{"latest":"2.0.1"}}