{"_id":"function-regex","_rev":"27-a172377bfa6ef99d6f64608400b4e5bf","name":"function-regex","description":"Function regex. Regular expression for matching function parts. Expose match groups for function name, arguments and function body.","dist-tags":{"latest":"1.0.2"},"versions":{"0.0.0":{"name":"function-regex","version":"0.0.0","description":"Function regex. Expose match groups for function name, arguments and function body.","scripts":{"lint":"jshint index.js && jscs index.js --reporter inline","test":"mocha","test-cov":"istanbul cover _mocha","test-travis":"istanbul cover _mocha --report lcovonly"},"author":{"name":"Charlike Make Reagent","email":"mameto_100@mail.bg","url":"https://github.com/tunnckoCore"},"repository":{"type":"git","url":"git://github.com/regexps/function-regex.git"},"keywords":["args","arguments","body","function","functions","match","name","re","regex","regexp","regexps"],"license":{"type":"MIT","url":"https://github.com/regexps/function-regex/blob/master/license.md"},"dependencies":{},"devDependencies":{"istanbul-harmony":"^0.3.1","mocha":"*","mocha-lcov-reporter":"^0.0.1"},"gitHead":"d2e4702490892ca9c4ae9f84d7420e8a9c93214c","bugs":{"url":"https://github.com/regexps/function-regex/issues"},"homepage":"https://github.com/regexps/function-regex","_id":"function-regex@0.0.0","_shasum":"89a2fee02945a85df76858542224dfdfde81cb5b","_from":".","_npmVersion":"2.1.16","_nodeVersion":"0.11.14","_npmUser":{"name":"tunnckocore","email":"mameto_100@mail.bg"},"maintainers":[{"name":"tunnckocore","email":"mameto_100@mail.bg"}],"dist":{"shasum":"89a2fee02945a85df76858542224dfdfde81cb5b","tarball":"https://registry.npmjs.org/function-regex/-/function-regex-0.0.0.tgz","integrity":"sha512-Qo/lWqZcnfoeDTtZKCWaUG4lP2jpSB9/qu77fUqxQxCs4vIkGp+UJKblfXj4S73F+Y7k8fvHMOWg53ZjmmmXCQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCRZXGr7DS47tYiP7YWQacj9K1VMvVRFm7844XtQq8EGAIgF5Ihaf/Q20K41aQ8pfmLKZ3auPaOh1IR4cEZj6fJJGI="}]},"directories":{}},"1.0.0":{"name":"function-regex","version":"1.0.0","description":"Function regex. Regular expression for matching function parts. Expose match groups for function name, arguments and function body.","scripts":{"lint":"jshint index.js && jscs index.js --reporter inline","test":"mocha","test-cov":"istanbul cover _mocha","test-travis":"istanbul cover _mocha --report lcovonly"},"author":{"name":"Charlike Make Reagent","email":"mameto_100@mail.bg","url":"https://github.com/tunnckoCore"},"repository":{"type":"git","url":"git://github.com/regexps/function-regex.git"},"keywords":["args","arguments","body","express","expression","expressions","function","functions","match","name","re","regex","regexp","regexps","regular"],"license":{"type":"MIT","url":"https://github.com/regexps/function-regex/blob/master/license.md"},"dependencies":{},"devDependencies":{"istanbul-harmony":"^0.3.1","mocha":"*","mocha-lcov-reporter":"^0.0.1"},"gitHead":"1fee0a0279f5a3da2d84b1c0fa1491c241a36f48","bugs":{"url":"https://github.com/regexps/function-regex/issues"},"homepage":"https://github.com/regexps/function-regex","_id":"function-regex@1.0.0","_shasum":"082c73aa81ae23d9b2ead8093b72599f4b9c9bf1","_from":".","_npmVersion":"2.1.16","_nodeVersion":"0.11.14","_npmUser":{"name":"tunnckocore","email":"mameto_100@mail.bg"},"maintainers":[{"name":"tunnckocore","email":"mameto_100@mail.bg"}],"dist":{"shasum":"082c73aa81ae23d9b2ead8093b72599f4b9c9bf1","tarball":"https://registry.npmjs.org/function-regex/-/function-regex-1.0.0.tgz","integrity":"sha512-nFkUxdVE5QCC8rWWAsO8VDoWFokax38+959jHgKWxYJzS3MbW1c9467AcGH2sS/2lqfWDbiW2ENUqBxwWZ6TPA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDVRsglmZHZGX+4ANtpMDUlSiBO7KXvFnW5BC+vaLmnHQIgSM4hs/tvTek4RJxamyk0qVp5DI4K7FKtnTsTwQm1b28="}]},"directories":{}},"1.0.1":{"name":"function-regex","version":"1.0.1","description":"Function regex. Regular expression for matching function parts. Expose match groups for function name, arguments and function body.","scripts":{"lint":"jshint index.js && jscs index.js --reporter inline","test":"mocha","test-cov":"istanbul cover _mocha","test-travis":"istanbul cover _mocha --report lcovonly"},"author":{"name":"Charlike Make Reagent","email":"mameto_100@mail.bg","url":"https://github.com/tunnckoCore"},"repository":{"type":"git","url":"git://github.com/regexps/function-regex.git"},"keywords":["args","arguments","body","express","expression","expressions","function","functions","match","name","re","regex","regexp","regexps","regular"],"license":{"type":"MIT","url":"https://github.com/regexps/function-regex/blob/master/license.md"},"dependencies":{},"devDependencies":{"istanbul-harmony":"^0.3.1","mocha":"*","mocha-lcov-reporter":"^0.0.1"},"gitHead":"23b822b23870686eb8351c2f1a470e86159e6d89","bugs":{"url":"https://github.com/regexps/function-regex/issues"},"homepage":"https://github.com/regexps/function-regex","_id":"function-regex@1.0.1","_shasum":"72478d0b2a5f9fbfb9bdd458b648586ba67d3dd8","_from":".","_npmVersion":"2.1.16","_nodeVersion":"0.11.14","_npmUser":{"name":"tunnckocore","email":"mameto_100@mail.bg"},"maintainers":[{"name":"tunnckocore","email":"mameto_100@mail.bg"}],"dist":{"shasum":"72478d0b2a5f9fbfb9bdd458b648586ba67d3dd8","tarball":"https://registry.npmjs.org/function-regex/-/function-regex-1.0.1.tgz","integrity":"sha512-eQXJ/DcmQi0P80UozT+uAOaw1Rxg6bVPpPHZRiAsWSEzx4Dks4F2/TNbYkmSrr7LTdVMqCENEJKkElLoNmQHdA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEGXY5vXH0JY43K86qMsmvbltu/El8VNyZDOGgh1oYfUAiBqp5RpR7r0LNBVf7SCzGXdgOvxw1f3+KjxMdQpen9htw=="}]},"directories":{}},"1.0.2":{"name":"function-regex","version":"1.0.2","description":"Function regex. Regular expression for matching function parts. Expose match groups for function name, arguments and function body.","scripts":{"lint":"jshint index.js && jscs index.js --reporter inline","test":"mocha","test-cov":"istanbul cover _mocha","test-travis":"istanbul cover _mocha --report lcovonly"},"author":{"name":"Charlike Make Reagent","email":"mameto_100@mail.bg","url":"https://github.com/tunnckoCore"},"repository":{"type":"git","url":"git://github.com/regexps/function-regex.git"},"keywords":["args","arguments","body","express","expression","expressions","function","functions","match","name","re","regex","regexp","regexps","regular"],"license":{"type":"MIT","url":"https://github.com/regexps/function-regex/blob/master/license.md"},"dependencies":{},"devDependencies":{"cleanup-coverage-code":"~1.0.2","coverage-code-regex":"~1.0.2","istanbul-harmony":"^0.3.1","mocha":"*","mocha-lcov-reporter":"^0.0.1"},"gitHead":"ace74280ffc17dcdcd2c92fec3fc9d17d2719248","bugs":{"url":"https://github.com/regexps/function-regex/issues"},"homepage":"https://github.com/regexps/function-regex","_id":"function-regex@1.0.2","_shasum":"25b9c3f7427ffe87af723f965d64c839aefe062e","_from":".","_npmVersion":"2.1.16","_nodeVersion":"0.11.14","_npmUser":{"name":"tunnckocore","email":"mameto_100@mail.bg"},"maintainers":[{"name":"tunnckocore","email":"mameto_100@mail.bg"}],"dist":{"shasum":"25b9c3f7427ffe87af723f965d64c839aefe062e","tarball":"https://registry.npmjs.org/function-regex/-/function-regex-1.0.2.tgz","integrity":"sha512-ykff9x74pEuL8BSHmkZ2HnkXbKGIxI6iEwYhBqGuuF0w1Fd7COHkCxg0/rBYvjUpsY6b/WLW/pcJXI3U3I2spg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFqSVlvyJi9QyElB7uRbkOAbc62JbRMoj7W+FOt71NfFAiBFLh/+A7t2XNYc//CFBA1i36mclwKwrTPbQnpaP6XtHA=="}]},"directories":{}}},"readme":"## [![npm][npmjs-img]][npmjs-url] [![mit license][license-img]][license-url] [![build status][travis-img]][travis-url] [![coverage status][coveralls-img]][coveralls-url] [![deps status][daviddm-img]][daviddm-url]\n\n\n> Function regex. Regular expression for matching function parts. Expose match groups for function name, arguments and function body.\n\n## Install\n```bash\nnpm install function-regex\nnpm test\n```\n\n\n## Usage\n> For more use-cases see the [tests](./test.js)\n\n```js\nvar functionRegex = require('function-regex');\n\nvar fixture = function testing(args, opts, dest, cb) {\n  return cb ? {\n    opts: [1,2,3]\n  } : true;\n};\n\nfixture.toString().match(functionRegex());\n//=> [1] = 'testing'\n//=> [2] = 'args, opts, dest, cb'\n//=> [3] = '\\n    return cb ? {\\n      opts: [1,2,3],\\n      args: args\\n    } : true;\\n  '\n\n\n'function(val, re) { return true; }'.match(functionRegex());\n//=> [1] = ''\n//=> [2] = 'val, re'\n//=> [3] = ' return true; '\n```\n\n\n### Matching groups\n+ `[0]` full function (`'function(val, re) { return true; }'`)\n+ `[1]` function name (`'testing'`)\n+ `[2]` function arguments (`'args, opts, dest, cb'`)\n+ `[3]` function body (`' return true; '`)\n\n\n## Author\n**Charlike Mike Reagent**\n+ [gratipay/tunnckoCore][author-gratipay]\n+ [twitter/tunnckoCore][author-twitter]\n+ [github/tunnckoCore][author-github]\n+ [npmjs/tunnckoCore][author-npmjs]\n+ [more ...][contrib-more]\n\n\n## License [![MIT license][license-img]][license-url]\nCopyright (c) 2014-2015 [Charlike Mike Reagent][contrib-more], [contributors][contrib-graf].  \nReleased under the [`MIT`][license-url] license.\n\n\n[npmjs-url]: http://npm.im/function-regex\n[npmjs-img]: https://img.shields.io/npm/v/function-regex.svg?style=flat&label=function-regex\n\n[coveralls-url]: https://coveralls.io/r/regexps/function-regex?branch=master\n[coveralls-img]: https://img.shields.io/coveralls/regexps/function-regex.svg?style=flat\n\n[license-url]: https://github.com/regexps/function-regex/blob/master/license.md\n[license-img]: https://img.shields.io/badge/license-MIT-blue.svg?style=flat\n\n[travis-url]: https://travis-ci.org/regexps/function-regex\n[travis-img]: https://img.shields.io/travis/regexps/function-regex.svg?style=flat\n\n[daviddm-url]: https://david-dm.org/regexps/function-regex\n[daviddm-img]: https://img.shields.io/david/dev/regexps/function-regex.svg?style=flat\n\n[author-gratipay]: https://gratipay.com/tunnckoCore\n[author-twitter]: https://twitter.com/tunnckoCore\n[author-github]: https://github.com/tunnckoCore\n[author-npmjs]: https://npmjs.org/~tunnckocore\n\n[contrib-more]: http://j.mp/1stW47C\n[contrib-graf]: https://github.com/regexps/function-regex/graphs/contributors\n\n***\n\n_Powered and automated by [kdf](https://github.com/tunnckoCore), January 27, 2015_","maintainers":[{"email":"super.ludiq@gmail.com","name":"vanchoy"},{"email":"mameto2011@gmail.com","name":"tunnckocore"}],"time":{"modified":"2022-06-18T04:15:31.967Z","created":"2015-01-25T22:09:04.121Z","0.0.0":"2015-01-25T22:09:04.121Z","1.0.0":"2015-01-25T22:29:53.710Z","1.0.1":"2015-01-27T01:16:02.430Z","1.0.2":"2015-01-28T04:02:40.428Z"},"homepage":"https://github.com/regexps/function-regex","keywords":["args","arguments","body","express","expression","expressions","function","functions","match","name","re","regex","regexp","regexps","regular"],"repository":{"type":"git","url":"git://github.com/regexps/function-regex.git"},"author":{"name":"Charlike Make Reagent","email":"mameto_100@mail.bg","url":"https://github.com/tunnckoCore"},"bugs":{"url":"https://github.com/regexps/function-regex/issues"},"license":{"type":"MIT","url":"https://github.com/regexps/function-regex/blob/master/license.md"},"readmeFilename":"readme.md","users":{"arteffeckt":true}}