{"_id":"execall","_rev":"236270","name":"execall","description":"Find multiple RegExp matches in a string","dist-tags":{"latest":"3.0.0"},"maintainers":[{"name":"sindresorhus","email":""}],"time":{"modified":"2023-03-24T16:28:07.000Z","created":"2015-05-31T12:12:52.910Z","3.0.0":"2021-04-08T14:19:20.762Z","2.0.0":"2019-04-18T05:54:50.964Z","1.0.0":"2015-05-31T12:12:52.910Z"},"users":{},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"repository":{"type":"git","url":"git+https://github.com/sindresorhus/execall.git"},"versions":{"3.0.0":{"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":{"shasum":"7c182d52a55fd6dfce3e957eb4829c1379a2b81b","size":1948,"noattachment":false,"key":"/execall/-/execall-3.0.0.tgz","tarball":"http://name.csiicloud.com:7001/execall/download/execall-3.0.0.tgz"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/execall_3.0.0_1617891560657_0.04441942389002551"},"_hasShrinkwrap":false,"publish_time":1617891560762,"_cnpm_publish_time":1617891560762,"_cnpmcore_publish_time":"2021-12-14T04:40:16.657Z"},"2.0.0":{"name":"execall","version":"2.0.0","description":"Find multiple RegExp matches in a string","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/execall.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=8"},"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":"^2.1.0"},"devDependencies":{"ava":"^1.4.1","tsd":"^0.7.2","xo":"^0.24.0"},"gitHead":"5634e2a064aebf925e5b0faaf8fd0d74da64bb99","bugs":{"url":"https://github.com/sindresorhus/execall/issues"},"homepage":"https://github.com/sindresorhus/execall#readme","_id":"execall@2.0.0","_npmVersion":"6.4.1","_nodeVersion":"8.15.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"16a06b5fe5099df7d00be5d9c06eecded1663b45","size":2014,"noattachment":false,"key":"/execall/-/execall-2.0.0.tgz","tarball":"http://name.csiicloud.com:7001/execall/download/execall-2.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/execall_2.0.0_1555566890801_0.9469648975886351"},"_hasShrinkwrap":false,"publish_time":1555566890964,"_cnpm_publish_time":1555566890964},"1.0.0":{"name":"execall","version":"1.0.0","description":"Find multiple RegExp matches in a string","license":"MIT","repository":{"type":"git","url":"https://github.com/sindresorhus/execall"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"node test.js"},"files":["index.js"],"keywords":["regex","regexp","re","regular","expression","exec","match","matches","execall","all","find","findall","immutable","string","str","multiple","many","global"],"dependencies":{"clone-regexp":"^1.0.0"},"devDependencies":{"ava":"0.0.4"},"gitHead":"18797f2b16558e1c6ef2c78e816e963fa632d0f9","bugs":{"url":"https://github.com/sindresorhus/execall/issues"},"homepage":"https://github.com/sindresorhus/execall","_id":"execall@1.0.0","_shasum":"73d0904e395b3cab0658b08d09ec25307f29bb73","_from":".","_npmVersion":"2.10.1","_nodeVersion":"0.12.4","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"73d0904e395b3cab0658b08d09ec25307f29bb73","size":1758,"noattachment":false,"key":"/execall/-/execall-1.0.0.tgz","tarball":"http://name.csiicloud.com:7001/execall/download/execall-1.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"publish_time":1433074372910,"_cnpm_publish_time":1433074372910,"_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","_attachments":{},"homepage":"https://github.com/sindresorhus/execall#readme","bugs":{"url":"https://github.com/sindresorhus/execall/issues"},"license":"MIT"}