{"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","tarball":"http://registry-npm.ywwl.com/execall/download/execall-1.0.0.tgz","integrity":"sha512-/J0Q8CvOvlAdpvhfkD/WnTQ4H1eU0exze2nFGPj/RSC7jpQ0NkKe2r28T5eMkhEEs+fzepMZNy1kVRKNlC04nQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCLHQFHCxWws7vrsnC8OXpmPIPDlKCOVvIRB9mWMSZZCAIgd2t0Sw2LsEpkzrCkvKQJJOE9VFba7mv7tKNDR7HsND4="}],"size":1758,"noattachment":false,"key":"/execall/-/execall-1.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"directories":{},"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":1433074372910,"_cnpm_publish_time":1433074372910,"dist-tags":{"latest":"3.0.0"}}