{"_id":"@putout/operator-regexp","_rev":"9-64919bd521ae71beb76e453c35625846","name":"@putout/operator-regexp","dist-tags":{"latest":"5.2.0"},"versions":{"1.0.0":{"name":"@putout/operator-regexp","version":"1.0.0","keywords":["putout","putout-operator","operator","regexp"],"author":{"url":"https://github.com/coderaiser","name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"license":"MIT","_id":"@putout/operator-regexp@1.0.0","maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"homepage":"https://github.com/coderaiser/putout/tree/master/packages/operator-regexp#readme","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"tag":false,"dist":{"shasum":"faf224e8d4bf29a4dc9f53b41d1261aef6c41968","tarball":"https://registry.npmjs.org/@putout/operator-regexp/-/operator-regexp-1.0.0.tgz","fileCount":5,"integrity":"sha512-ts9QqsrpPCcXH9uao8ZjgxjvhdhaT7rZYy0JDKkfv0tptC55LEN8b9/0G4ZfVTm39C+7V+WFrDR0bDccyPd0yw==","signatures":[{"sig":"MEQCIHECo5BP0M/0xeTWJuj5RioGZoL8bLLejE2xzlumj9WiAiAdtHNR2j0vLwPltRwN7WLjtIVgk+5pyHVp7V+l/9+rGA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":4572,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh2XmWCRA9TVsSAnZWagAAa2IQAIeElgBz8M2B2jh9vFGz\nV76PMW2p9Od9WROkXNqthCis1A/djQWNmho8UWwNYuvw4Eg5lfKT6kkoh015\nlDt54Rks3p5pGe5BtZSSySjmvMgUAcYrwtrRTJ7zKqFZIDhZ49Dre5s6DGmz\ndD7yA5y7D6bE2dltsOFG3iL3PSdI/fEnvLLWZKU4yDbX7rr1gtQwtC2NW3Xz\nXD/YDhb9+dU70mYAkyKApWXsgHmSQzUcnWcVNZqGCD50PVGSv1wdM1AzqUQ6\nt/vN61civAhTZdLSMm14oI7Iiq1P2nM5/RcKtjK2PMozGEs0TXOCTzeZ9jQz\nhTyFO5ue7oo3zeQGlirNAMNYYMUOm/LTmLPpBVwupZu5qkj2DrVh9seGySOk\n6Vd7AjL1YnKFyjNx53TETzNre7BAK1V86Xw6NeMIFnL70R/Rye6qi1DdUeNA\n7sdTlaP+1KoHP9jV9Ruo/ZznLvMP3g7MXOyMxy66jPJd1y6V8ao6vJXnQbu/\nVc0nT4tI0EHDlYHaj2qbptOXvAaRq2HlowfV3eHBy3C/Z0D03aX4QSspCDtE\nlNB3QAdSpoIIRfz14vqY4swKY67OCoqoBdXov3PJqWQPoSo22K03logkjaG2\nb57ZerUCwotNMpf1iKkwQ3iB3xorFq+f3E5oxP7c9sptW1cMjavlkGgey2/t\nE0gb\r\n=ptzA\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/regexp.js","engines":{"node":">=14"},"gitHead":"484fbbf4804b7fed4f99351c17de397993cbfecf","release":false,"scripts":{"lint":"madrun lint","test":"madrun test","report":"madrun report","coverage":"madrun coverage","fix:lint":"madrun fix:lint","fresh:lint":"madrun fresh:lint","lint:fresh":"madrun lint:fresh","watch:test":"madrun watch:test"},"_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"changelog":false,"repository":{"url":"git://github.com/coderaiser/putout.git","type":"git"},"_npmVersion":"7.24.0","description":"putout operator adds ability to check if provided regexp can be converted to string without loosing it's sense","directories":{},"_nodeVersion":"16.10.0","dependencies":{"regexp-tree":"^0.1.24"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"c8":"^7.5.0","lerna":"^4.0.0","eslint":"^8.0.0-beta.0","madrun":"^8.0.1","montag":"^1.2.1","nodemon":"^2.0.1","supertape":"^6.7.2","@putout/test":"^3.0.0","eslint-plugin-node":"^11.0.0","eslint-plugin-putout":"^10.0.0"},"peerDependencies":{"putout":">=20"},"_npmOperationalInternal":{"tmp":"tmp/operator-regexp_1.0.0_1633266745239_0.0002230715987532328","host":"s3://npm-registry-packages"}},"2.0.0":{"name":"@putout/operator-regexp","version":"2.0.0","keywords":["putout","putout-operator","operator","regexp"],"author":{"url":"https://github.com/coderaiser","name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"license":"MIT","_id":"@putout/operator-regexp@2.0.0","maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"homepage":"https://github.com/coderaiser/putout/tree/master/packages/operator-regexp#readme","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"tag":false,"dist":{"shasum":"fe1a599a8953879dbe8fd1776709450598c9e9e3","tarball":"https://registry.npmjs.org/@putout/operator-regexp/-/operator-regexp-2.0.0.tgz","fileCount":6,"integrity":"sha512-TbctczJnFTWfvZI9+mPVyKdr5EVc0Q5fwmykPO+VzMcZOvxkD1hXPz9watOk23iQsbrEJMxPTEuyDRicJdXYGA==","signatures":[{"sig":"MEQCIFL7SozPsVqrS/Tga2ZKHXhMmuLSeTjj8/kyehPtVVOuAiBH0yhOHIWNBw3WsJO4KQ7zhoMmv26AXiUUT8AaMUTfpQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":5215},"main":"lib/regexp.js","type":"commonjs","engines":{"node":">=20"},"gitHead":"04ff0f30b63f57cb3ea16ebbb757b24244507bd5","release":false,"scripts":{"lint":"madrun lint","test":"madrun test","report":"madrun report","coverage":"madrun coverage","fix:lint":"madrun fix:lint","fresh:lint":"madrun fresh:lint","lint:fresh":"madrun lint:fresh","watch:test":"madrun watch:test"},"_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"changelog":false,"repository":{"url":"git+https://github.com/coderaiser/putout.git","type":"git"},"_npmVersion":"11.4.2","description":"🐊Putout operator adds ability to check if provided regexp can be converted to string without losing it's sense","directories":{},"_nodeVersion":"24.5.0","dependencies":{"regexp-tree":"^0.1.24"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"c8":"^10.0.0","eslint":"^9.0.0","madrun":"^11.0.0","montag":"^1.2.1","nodemon":"^3.0.1","supertape":"^11.0.3","@putout/test":"^14.0.0","eslint-plugin-n":"^17.0.0","@putout/eslint-flat":"^3.0.0","eslint-plugin-putout":"^28.0.0"},"peerDependencies":{"putout":">=40"},"_npmOperationalInternal":{"tmp":"tmp/operator-regexp_2.0.0_1755300826911_0.2504907722981746","host":"s3://npm-registry-packages-npm-production"}},"3.0.0":{"name":"@putout/operator-regexp","version":"3.0.0","keywords":["putout","putout-operator","operator","regexp"],"author":{"url":"https://github.com/coderaiser","name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"license":"MIT","_id":"@putout/operator-regexp@3.0.0","maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"homepage":"https://github.com/coderaiser/putout/tree/master/packages/operator-regexp#readme","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"tag":false,"dist":{"shasum":"3eda41f4cdf787cb56d18df0fd80cd18e0762b77","tarball":"https://registry.npmjs.org/@putout/operator-regexp/-/operator-regexp-3.0.0.tgz","fileCount":6,"integrity":"sha512-ArNyopBhESd8awDK/8AgH/eH8CnI9bzVt533U0F+lBsMlSpi2WVPL4VuPTWWPRxWFMs3/DCxfdiLiZLXmLtH8g==","signatures":[{"sig":"MEUCIC9q7nj/qJCUHZzccM5sG7QzIFFXx/EzRPD1wVNDrS+PAiEApF050DCxIySCRVXZ9OVm2rb/6zPwgDYkQvUO8yEzMe0=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":5472},"main":"lib/regexp.js","type":"commonjs","engines":{"node":">=20"},"gitHead":"5b736cae8973be82ea62ef08659a0bc03b9b6898","release":false,"scripts":{"lint":"madrun lint","test":"madrun test","report":"madrun report","coverage":"madrun coverage","fix:lint":"madrun fix:lint","fresh:lint":"madrun fresh:lint","lint:fresh":"madrun lint:fresh","watch:test":"madrun watch:test"},"_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"changelog":false,"repository":{"url":"git+https://github.com/coderaiser/putout.git","type":"git"},"_npmVersion":"11.4.2","description":"🐊Putout operator adds ability to check if provided regexp can be converted to string without losing it's sense","directories":{},"_nodeVersion":"25.2.1","dependencies":{"regexp-tree":"^0.1.24"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"c8":"^10.0.0","eslint":"v10.0.0-alpha.0","madrun":"^11.0.0","montag":"^1.2.1","nodemon":"^3.0.1","supertape":"^11.0.3","try-catch":"^3.0.1","@putout/test":"^14.0.0","eslint-plugin-n":"^17.0.0","eslint-plugin-putout":"^29.0.0"},"peerDependencies":{"putout":">=41"},"_npmOperationalInternal":{"tmp":"tmp/operator-regexp_3.0.0_1765126470302_0.716768928189216","host":"s3://npm-registry-packages-npm-production"}},"4.0.0":{"name":"@putout/operator-regexp","version":"4.0.0","keywords":["putout","putout-operator","operator","regexp"],"author":{"url":"https://github.com/coderaiser","name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"license":"MIT","_id":"@putout/operator-regexp@4.0.0","maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"homepage":"https://github.com/coderaiser/putout/tree/master/packages/operator-regexp#readme","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"tag":false,"dist":{"shasum":"3d3d80afce9319025f9271ac4e0f18bca0698a00","tarball":"https://registry.npmjs.org/@putout/operator-regexp/-/operator-regexp-4.0.0.tgz","fileCount":6,"integrity":"sha512-dDaTrjOpoWe4eWhkekHCD6m7U4pp9iZ5xEoTaWmF4oefF2dKJRRyY9KvWomOCfLzz3+8Rb3ap99JEDhwPGI+Pg==","signatures":[{"sig":"MEUCIQCt9nmm3DaOwqcsqNkBvrjhu29LIN0Fx/MkLXN7lHi+4QIgeHLf09UcfNiC/sBqv+VFfHBqm5j1/nj9rOAnAzP6WYo=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":5365},"main":"lib/regexp.js","type":"module","engines":{"node":">=22"},"gitHead":"d86b9c1ec0c89998435077456e30a62ed56548df","release":false,"scripts":{"lint":"madrun lint","test":"madrun test","report":"madrun report","coverage":"madrun coverage","fix:lint":"madrun fix:lint","fresh:lint":"madrun fresh:lint","lint:fresh":"madrun lint:fresh","watch:test":"madrun watch:test"},"_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"changelog":false,"repository":{"url":"git+https://github.com/coderaiser/putout.git","type":"git"},"_npmVersion":"11.4.2","description":"🐊Putout operator adds ability to check if provided regexp can be converted to string without losing it's sense","directories":{},"_nodeVersion":"25.2.1","dependencies":{"regexp-tree":"^0.1.24"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"c8":"^10.0.0","eslint":"^10.0.0-alpha.0","madrun":"^12.0.0","montag":"^1.2.1","nodemon":"^3.0.1","supertape":"^11.0.3","try-catch":"^4.0.0","@putout/test":"^15.0.0","eslint-plugin-n":"^17.0.0","eslint-plugin-putout":"^29.0.0"},"peerDependencies":{"putout":">=41"},"_npmOperationalInternal":{"tmp":"tmp/operator-regexp_4.0.0_1767441420431_0.7910891348624249","host":"s3://npm-registry-packages-npm-production"}},"5.0.0":{"name":"@putout/operator-regexp","version":"5.0.0","keywords":["putout","putout-operator","operator","regexp"],"author":{"url":"https://github.com/coderaiser","name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"license":"MIT","_id":"@putout/operator-regexp@5.0.0","maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"homepage":"https://github.com/coderaiser/putout/tree/master/packages/operator-regexp#readme","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"tag":false,"dist":{"shasum":"f6905bf7cbf21910233f5015fdd3981e9a5d7184","tarball":"https://registry.npmjs.org/@putout/operator-regexp/-/operator-regexp-5.0.0.tgz","fileCount":6,"integrity":"sha512-fdThgL76DVW2xRerVJ/d0fAiAHBRokg0I4hLXtGF0nPUPOuHFbnoLZJkK+r/IRa9ebEiMYeQ0fFod8ggYGA9Kg==","signatures":[{"sig":"MEQCIEr0qYiYZEcRqUB/lVQTGa4ugjDqsDSKQqQRqJXmV3XqAiAjsdNL3BqLwvaTgbWqsN96O0IKoGoCXMrSnhelMQmU4A==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":5328},"main":"lib/regexp.js","type":"module","engines":{"node":">=22"},"gitHead":"2f4d3fd97b71ba3901ff7c8b02e5e25aace95c53","release":false,"scripts":{"lint":"madrun lint","test":"madrun test","report":"madrun report","coverage":"madrun coverage","fix:lint":"madrun fix:lint","fresh:lint":"madrun fresh:lint","lint:fresh":"madrun lint:fresh","watch:test":"madrun watch:test"},"_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"changelog":false,"repository":{"url":"git+https://github.com/coderaiser/putout.git","type":"git"},"_npmVersion":"11.4.2","description":"🐊Putout operator adds ability to check if provided regexp can be converted to string without losing it's sense","directories":{},"_nodeVersion":"24.14.0","dependencies":{"regexp-tree":"^0.1.24"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^10.0.0","madrun":"^13.0.0","montag":"^1.2.1","nodemon":"^3.0.1","superc8":"^12.0.0","supertape":"^12.0.0","try-catch":"^4.0.0","@putout/test":"^15.0.0","eslint-plugin-putout":"^31.0.0"},"peerDependencies":{"putout":">=42"},"_npmOperationalInternal":{"tmp":"tmp/operator-regexp_5.0.0_1773396632150_0.028919602393139288","host":"s3://npm-registry-packages-npm-production"}},"5.1.0":{"name":"@putout/operator-regexp","version":"5.1.0","keywords":["putout","putout-operator","operator","regexp"],"author":{"url":"https://github.com/coderaiser","name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"license":"MIT","_id":"@putout/operator-regexp@5.1.0","maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"homepage":"https://github.com/coderaiser/putout/tree/master/packages/operator-regexp#readme","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"tag":false,"dist":{"shasum":"721c1b776058177e2bdb8717ab89b292c90c6f4c","tarball":"https://registry.npmjs.org/@putout/operator-regexp/-/operator-regexp-5.1.0.tgz","fileCount":7,"integrity":"sha512-dblYdCre29e9cBC2NOo1ktR1LubKJi69M9693lz0Ek6hk17HZinMozaCZ9LjOTFBAuVQGZDcabmDzPecnzWaug==","signatures":[{"sig":"MEYCIQCzGh2Tes+KkFqkh8EiS3o2figKnjvMVtaLwAOP9xEw0QIhAIlQa9r2K3fkAqKozkln5Sr/hlKUfXGrdulFt+8DHdUJ","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":5758},"main":"lib/regexp.js","type":"module","engines":{"node":">=22"},"gitHead":"56e72629c9481e4c5bb8520261ccd8909676c094","release":false,"scripts":{"lint":"madrun lint","test":"madrun test","report":"madrun report","coverage":"madrun coverage","fix:lint":"madrun fix:lint","fresh:lint":"madrun fresh:lint","lint:fresh":"madrun lint:fresh","watch:test":"madrun watch:test"},"_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"changelog":false,"repository":{"url":"git+https://github.com/coderaiser/putout.git","type":"git"},"_npmVersion":"11.4.2","description":"🐊Putout operator adds ability to check if provided regexp can be converted to string without losing it's sense","directories":{},"_nodeVersion":"25.9.0","dependencies":{"jsesc":"^3.1.0","regexp-tree":"^0.1.24"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^10.0.0","madrun":"^13.0.0","montag":"^2.0.0","nodemon":"^3.0.1","superc8":"^12.0.0","supertape":"^12.0.0","try-catch":"^4.0.0","@putout/test":"^15.0.0","eslint-plugin-putout":"^31.0.0"},"peerDependencies":{"putout":">=42"},"_npmOperationalInternal":{"tmp":"tmp/operator-regexp_5.1.0_1777660078213_0.2033411678403403","host":"s3://npm-registry-packages-npm-production"}},"5.2.0":{"name":"@putout/operator-regexp","version":"5.2.0","type":"module","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"🐊Putout operator adds ability to check if provided regexp can be converted to string without losing it's sense","homepage":"https://github.com/coderaiser/putout/tree/master/packages/operator-regexp#readme","main":"lib/regexp.js","release":false,"tag":false,"changelog":false,"repository":{"type":"git","url":"git+https://github.com/coderaiser/putout.git"},"scripts":{"wisdom":"madrun wisdom","test":"madrun test","test:dts":"madrun test:dts","watch:test":"madrun watch:test","lint":"madrun lint","fresh:lint":"madrun fresh:lint","lint:fresh":"madrun lint:fresh","fix:lint":"madrun fix:lint","coverage":"madrun coverage","report":"madrun report"},"dependencies":{"jsesc":"^3.1.0","regexp-tree":"^0.1.24"},"keywords":["putout","putout-operator","operator","regexp"],"devDependencies":{"@putout/test":"^15.0.0","check-dts":"^1.0.0","eslint":"^10.0.0","eslint-plugin-putout":"^31.0.0","madrun":"^13.0.0","montag":"^2.0.0","nodemon":"^3.0.1","superc8":"^12.0.0","supertape":"^13.0.0","try-catch":"^4.0.0"},"peerDependencies":{"putout":">=42"},"license":"MIT","engines":{"node":">=22"},"publishConfig":{"access":"public"},"_id":"@putout/operator-regexp@5.2.0","gitHead":"e408ec48b22c6ba27745ad1069133ad488a206d4","types":"./lib/regexp.d.ts","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_nodeVersion":"26.4.0","_npmVersion":"11.4.2","dist":{"integrity":"sha512-lc0ILbghFgetG0MO66B2MLTU9iQGJ1q1wb2e6SddWktG2R6MtxXWZstC+nYOWUiZjRM6VCK/bgT8eofSsgcSEQ==","shasum":"bf74fd3ce38e942d23c0a08c70fafb9702ee285d","tarball":"https://registry.npmjs.org/@putout/operator-regexp/-/operator-regexp-5.2.0.tgz","fileCount":8,"unpackedSize":6423,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDDTLAZgBw1VMpk6uREEq4bEwl0Yj6iBCyE2j4bVpX2gAIgA/VfSGXJjiLwO5P2YvcsIuqJMMQ4HwJ6hlocPblnsXU="}]},"_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"directories":{},"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/operator-regexp_5.2.0_1782574430486_0.071595829404548"},"_hasShrinkwrap":false}},"time":{"created":"2021-10-03T13:12:25.106Z","modified":"2026-06-27T15:33:50.782Z","1.0.0":"2021-10-03T13:12:25.405Z","2.0.0":"2025-08-15T23:33:47.117Z","3.0.0":"2025-12-07T16:54:30.451Z","4.0.0":"2026-01-03T11:57:00.578Z","5.0.0":"2026-03-13T10:10:32.281Z","5.1.0":"2026-05-01T18:27:58.369Z","5.2.0":"2026-06-27T15:33:50.661Z"},"bugs":{"url":"https://github.com/coderaiser/putout/issues"},"author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"license":"MIT","homepage":"https://github.com/coderaiser/putout/tree/master/packages/operator-regexp#readme","keywords":["putout","putout-operator","operator","regexp"],"repository":{"type":"git","url":"git+https://github.com/coderaiser/putout.git"},"description":"🐊Putout operator adds ability to check if provided regexp can be converted to string without losing it's sense","maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"readme":"# @putout/operator-regexp [![NPM version][NPMIMGURL]][NPMURL]\n\n[NPMIMGURL]: https://img.shields.io/npm/v/@putout/operator-regexp.svg?style=flat&longCache=true\n[NPMURL]: https://npmjs.org/package/@putout/operator-regexp \"npm\"\n\n🐊[**Putout**](https://github.com/coderaiser/putout) operator adds ability to determine that provided [`RegExp`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp) can be\nconverted to [`String`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String) without losing it's sense.\n\nIt is used for example in [regexp/convert-replace-to-relace-all](https://github.com/coderaiser/putout/tree/master/packages/plugin-regexp#regexpconvert-replace-to-replace-all):\n\n```diff\n-'hello'.replace(/hello/g, 'world');\n+'hello'.replaceAll('hello', 'world');\n```\n\n## Install\n\n```\nnpm i putout @putout/operator-regexp\n```\n\n## API\n\n### isSimpleRegexp(regexp: RegExp)\n\n```js\nconst {operator} = require('putout');\nconst {isSimpleRegExp} = operator;\n\nisSimpleRegExp(/hello world/);\n// returns\ntrue;\n\nisSimpleRegExp(/^hello/);\n// returns\nfalse;\n```\n\n### transformRegExp(regexp: String, plugin: Traverser)\n\n```js\ntransformRegExp('[aab]', {\n    report,\n    fix,\n    traverse,\n});\n```\n\n### getStringFromRegExp(pattern: String)\n\nTo avoid errors like this:\n\n> SyntaxError: Expecting Unicode escape sequence \\uXXXX\n\nconst string = getStringFromRegExp(regexpNode);\n\n## License\n\nMIT\n","readmeFilename":"README.md"}