JSPM

regexp.prototype.search

0.1.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 269
  • Score
    100M100P100Q98522F

A robust & optimized `RegExp.prototype.search` polyfill, based on the ECMAScript 6 specification.

Package Exports

  • regexp.prototype.search

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (regexp.prototype.search) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

ES6 RegExp.prototype.search polyfill Build status Code coverage status

An robust & optimized ES3-compatible polyfill for the RegExp.prototype.search method in ECMAScript 6.

Installation

In a browser:

<script src="regex-prototype-search.js"></script>

Via npm:

npm install regexp.prototype.search

Then, in Node.js:

require('regexp.prototype.search');

// On Windows and on Mac systems with default settings, case doesn’t matter,
// which allows you to do this instead:
require('RegExp.prototype.search');

Author

twitter/mathias
Mathias Bynens

License

This polyfill is available under the MIT license.