881f80adbf97d04756685ff233e1c7761316c8ee101fe04358a55e7653a3bcc8e9f5786e32a8f6cf4dafcf09fd57df72fcce17c78fe57dd2034c8039b420c1 529 B

1234567891011121314151617181920212223242526272829303132333435
  1. # babel-plugin-transform-es2015-sticky-regex
  2. > Compile ES2015 sticky regex to an ES5 RegExp constructor
  3. ## Installation
  4. ```sh
  5. npm install --save-dev babel-plugin-transform-es2015-sticky-regex
  6. ```
  7. ## Usage
  8. ### Via `.babelrc` (Recommended)
  9. **.babelrc**
  10. ```json
  11. {
  12. "plugins": ["transform-es2015-sticky-regex"]
  13. }
  14. ```
  15. ### Via CLI
  16. ```sh
  17. babel --plugins transform-es2015-sticky-regex script.js
  18. ```
  19. ### Via Node API
  20. ```javascript
  21. require("babel-core").transform("code", {
  22. plugins: ["transform-es2015-sticky-regex"]
  23. });
  24. ```