{"name":"execall","version":"3.0.0","description":"Find multiple RegExp matches in a string","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/execall.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":"./index.js","engines":{"node":">=12"},"scripts":{"test":"xo && ava && tsd"},"keywords":["regex","regexp","regular","expression","exec","match","matches","execall","all","find","findall","immutable","string","multiple","many","global"],"dependencies":{"clone-regexp":"^3.0.0"},"devDependencies":{"ava":"^3.15.0","tsd":"^0.14.0","xo":"^0.38.2"},"gitHead":"f74205018c3ca43344a252444a260342434ad3b1","bugs":{"url":"https://github.com/sindresorhus/execall/issues"},"homepage":"https://github.com/sindresorhus/execall#readme","_id":"execall@3.0.0","_nodeVersion":"12.20.1","_npmVersion":"6.14.10","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"integrity":"sha512-FaJeg2uWc8ADWnAnoDbxhAAr4U/j86ujlojnEpnBHQ4FM2viZKNjjyO2O6AKG6+9usZAnqsI4+1+w6vzx0x4uw==","shasum":"7c182d52a55fd6dfce3e957eb4829c1379a2b81b","tarball":"http://registry-npm.ywwl.com/execall/download/execall-3.0.0.tgz","fileCount":5,"unpackedSize":3704,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgbxDpCRA9TVsSAnZWagAARBgP/iBPKN1S8PwLEle0jrIf\nodA5JpSibM6Hg4GTjs3ZoyL6CX6iPrdq/SUccnya/R+rPBdQqbifWzPYThA3\nSgayGW5pEIi+VgDeUzscrmFuKYCIjRa/YwFccEHZCKy+m24Wxw91fU/q9TSI\nIUVepRv/d53asyeKnMPXl1YhIxD5crd3aofTMaZ+KOzpmXZxk4qzU/ncSH4E\nc8f6Vl2LFmQcT1Bu8OMAMrCKWd4uoY7NjqnU1Kbo9siJgREDOg5f3t5/siJ0\nqvelLL92UdwcAPnuERgZSLiUtNrU+zsjIVvklM0ylxg4aNzdLLz7LK1Jb26c\nmKhHGCDv5rUuRZC+veA66t0Q4WMtRCceXYprHhqDV3dipQLS+l4tXbNLBube\nppquWrlfRK+sHWXBblUZr8F9/bCK471Fj95Y06PU4pXGdphl/RbFAF500UL8\ntXYPgl1wbOijWFDdf0ToNqxCX0q6EzvimD8/4/mglKICkyc+JqCIR6/gtnjw\nZz1wXuOKbNkzbCUBLuqLODzaxfJDJ/J2AVTrH6o52ZRgEJPRTwZaNgQCZOwF\nw+0bq5o0S3cXqTDZepMuY8pu9Ogc3R+/ygcdii0Dv5zcQwabvKwzZHIj4VUT\noLKevJUBhEtOV3oybQsgisiRHNm5onKIyYHdzM0KU9m5y97p2pxs4225RgIA\n2TM9\r\n=GU2g\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGWfFVwKLYgb4uTlJL2kF1n9WzZZwrlKkC8hhShGyjrCAiApAzjKp3dj2ic3/iqmszBdaAc7eQkRcjCk06hYqlRTGA=="}],"size":1948,"noattachment":false,"key":"/execall/-/execall-3.0.0.tgz"},"directories":{},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/execall_3.0.0_1617891560657_0.04441942389002551"},"_hasShrinkwrap":false,"readme":"# execall\n\n> Find multiple RegExp matches in a string\n\nInstead of having to iterate over `RegExp#exec`, immutable, and with a nicer result format.\n\n## Install\n\n```\n$ npm install execall\n```\n\n## Usage\n\n```js\nimport execAll from 'execall';\n\nexecAll(/(\\d+)/g, '$200 and $400');\n/*\n[\n\t{\n\t\tmatch: '200',\n\t\tsubMatches: ['200'],\n\t\tindex: 1\n\t},\n\t{\n\t\tmatch: '400',\n\t\tsubMatches: ['400'],\n\t\tindex: 10\n\t}\n]\n*/\n```\n\n## API\n\n### execAll(regexp, string)\n\nReturns an `object[]` with a match, sub-matches, and index.\n\n#### regexp\n\nType: `RegExp`\n\nRegular expression to match against the `string`.\n\n#### string\n\nType: `string`\n\n## Related\n\n- [replace-string](https://github.com/sindresorhus/replace-string) - Replace all substring matches in a string\n","publish_time":1617891560762,"_cnpm_publish_time":1617891560762,"dist-tags":{"latest":"3.0.0"}}