{"_id":"github-short-url-regex","_rev":"2764795","name":"github-short-url-regex","description":"Regular expression (Regex) for matching github shorthand (user/repo#branch).","dist-tags":{"latest":"3.0.0"},"maintainers":[{"name":"tunnckocore","email":"mameto_100@mail.bg"},{"name":"vanchoy","email":"super.ludiq@gmail.com"}],"time":{"modified":"2022-04-02T08:53:47.000Z","created":"2014-12-20T14:32:14.628Z","3.0.0":"2015-03-26T02:33:12.106Z","2.0.0":"2015-03-26T02:02:18.593Z","1.0.0":"2014-12-20T14:32:14.628Z"},"users":{},"author":{"name":"Charlike Mike Reagent","email":"mameto_100@mail.bg","url":"https://github.com/tunnckoCore"},"repository":{"type":"git","url":"git://github.com/regexps/github-short-url-regex.git"},"versions":{"3.0.0":{"name":"github-short-url-regex","version":"3.0.0","description":"Regular expression (Regex) for matching github shorthand (user/repo#branch).","scripts":{"lint":"jshint index.js && jscs index.js --reporter inline","test":"mocha","test-cov":"istanbul cover _mocha","test-travis":"istanbul cover _mocha --report lcovonly","benchmark":"node benchmark"},"author":{"name":"Charlike Mike Reagent","email":"mameto_100@mail.bg","url":"https://github.com/tunnckoCore"},"repository":{"type":"git","url":"git://github.com/regexps/github-short-url-regex.git"},"keywords":["github","regex","regexps","short","shorthand","url"],"license":{"type":"MIT","url":"https://github.com/regexps/github-short-url-regex/blob/master/license.md"},"dependencies":{"regex-cache":"~0.4.2"},"devDependencies":{"benchmarked":"~0.1.4","istanbul-harmony":"~0.3.1","mocha":"~2.2.0"},"gitHead":"57be8bbd69f07cbe7a4aa3e0878c56a9f6be2a54","bugs":{"url":"https://github.com/regexps/github-short-url-regex/issues"},"homepage":"https://github.com/regexps/github-short-url-regex","_id":"github-short-url-regex@3.0.0","_shasum":"4bda3be81fa1c98875c275b5f593dcba357566e4","_from":".","_npmVersion":"2.7.0","_nodeVersion":"1.5.1","_npmUser":{"name":"tunnckocore","email":"mameto_100@mail.bg"},"maintainers":[{"name":"tunnckocore","email":"mameto_100@mail.bg"},{"name":"vanchoy","email":"super.ludiq@gmail.com"}],"dist":{"shasum":"4bda3be81fa1c98875c275b5f593dcba357566e4","size":6096,"noattachment":false,"key":"/github-short-url-regex/-/github-short-url-regex-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/github-short-url-regex/download/github-short-url-regex-3.0.0.tgz"},"directories":{},"publish_time":1427337192106,"_hasShrinkwrap":false,"_cnpm_publish_time":1427337192106,"_cnpmcore_publish_time":"2021-12-17T00:46:05.806Z"},"2.0.0":{"name":"github-short-url-regex","version":"2.0.0","description":"Regular expression (Regex) for matching github shorthand (user/repo#branch).","scripts":{"lint":"jshint index.js && jscs index.js --reporter inline","test":"mocha","test-cov":"istanbul cover _mocha","test-travis":"istanbul cover _mocha --report lcovonly","benchmark":"node benchmark"},"author":{"name":"Charlike Mike Reagent","email":"mameto_100@mail.bg","url":"https://github.com/tunnckoCore"},"repository":{"type":"git","url":"git://github.com/regexps/github-short-url-regex.git"},"keywords":["github","regex","regexps","short","shorthand","url"],"license":{"type":"MIT","url":"https://github.com/regexps/github-short-url-regex/blob/master/license.md"},"dependencies":{"regex-cache":"~0.4.2"},"devDependencies":{"benchmarked":"^0.1.4","istanbul-harmony":"~0.3.1","mocha":"~2.2.0"},"gitHead":"eeca51ba59183db664c82e57e2fb13b3a9366589","bugs":{"url":"https://github.com/regexps/github-short-url-regex/issues"},"homepage":"https://github.com/regexps/github-short-url-regex","_id":"github-short-url-regex@2.0.0","_shasum":"29ad08d3897168a6ba976a0f8e2a30537ef4eb8e","_from":".","_npmVersion":"2.7.0","_nodeVersion":"1.5.1","_npmUser":{"name":"tunnckocore","email":"mameto_100@mail.bg"},"maintainers":[{"name":"tunnckocore","email":"mameto_100@mail.bg"},{"name":"vanchoy","email":"super.ludiq@gmail.com"}],"dist":{"shasum":"29ad08d3897168a6ba976a0f8e2a30537ef4eb8e","size":6056,"noattachment":false,"key":"/github-short-url-regex/-/github-short-url-regex-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/github-short-url-regex/download/github-short-url-regex-2.0.0.tgz"},"directories":{},"publish_time":1427335338593,"_hasShrinkwrap":false,"_cnpm_publish_time":1427335338593,"_cnpmcore_publish_time":"2021-12-17T00:46:06.025Z"},"1.0.0":{"name":"github-short-url-regex","version":"1.0.0","description":"Regex for converting github shorthand (user/repo#branch) url to object","scripts":{"lint":"jshint . && jscs . --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/github-short-url-regex.git"},"keywords":["github","regex","regexps","short","shorthand","url"],"license":{"type":"MIT","url":"https://github.com/regexps/github-short-url-regex/blob/master/license.md"},"dependencies":{},"devDependencies":{"istanbul-harmony":"^0.3.1","mocha":"^2.0.1","mocha-lcov-reporter":"^0.0.1"},"gitHead":"01a2f256d6d9dc1e0b4bb020efb40c8b6818c366","bugs":{"url":"https://github.com/regexps/github-short-url-regex/issues"},"homepage":"https://github.com/regexps/github-short-url-regex","_id":"github-short-url-regex@1.0.0","_shasum":"c51b8a3b3ca57d9ab200e8771469c794ac67ea75","_from":".","_npmVersion":"2.0.0","_npmUser":{"name":"tunnckocore","email":"mameto_100@mail.bg"},"maintainers":[{"name":"tunnckocore","email":"mameto_100@mail.bg"},{"name":"vanchoy","email":"super.ludiq@gmail.com"}],"dist":{"shasum":"c51b8a3b3ca57d9ab200e8771469c794ac67ea75","size":5051,"noattachment":false,"key":"/github-short-url-regex/-/github-short-url-regex-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/github-short-url-regex/download/github-short-url-regex-1.0.0.tgz"},"directories":{},"publish_time":1419085934628,"_hasShrinkwrap":false,"_cnpm_publish_time":1419085934628,"_cnpmcore_publish_time":"2021-12-17T00:46:06.262Z"}},"readme":"## [![npm version][npmjs-img]][npmjs-url] [![mit license][license-img]][license-url] [![build status][travis-img]][travis-url] [![coverage status][coveralls-img]][coveralls-url]\n\n> Regular expression (Regex) for matching github shorthand (user/repo#branch).\n\n## Install\n```\nnpm i --save github-short-url-regex\nnpm test\n```\n\n\n## Support\n- github shorthands `mochajs/mocha#master`\n  + where thing after hash (#) represent release, tag or branch\n- npm shorthands `gulpjs/gulp@v3.8.10`\n\n\n## [githubShortUrlRegex](./index.js#L19)\n> Find github shorthand url (user/repo#branch)  \n\n- `[options]` **{Object}**\n  + `flags` **{String}** every valid RegExp flag, default `undefined`\n  + `exact` **{Boolean}**\n- `return` **{RegExp}**\n\n\n## Usage\n> For more use-cases see the [tests](./test.js)\n\n```js\nvar regex = require('github-short-url-regex');\n\nregex().test('gh tunnckoCore/npmls#master here');\n//=> false\n\nregex({flags: 'g'}).test('gh tunnckoCore/npmls#master here');\n//=> false\n\nregex({flags: 'g', exact: false}).test('gh tunnckoCore/npmls#master here');\n//=> true\n\nregex({flags: 'g', exact: true}).test('gh tunnckoCore/npmls#master here');\n//=> false\n\n'gh tunnckoCore/npmls#test here user/repo#branch yea'.match(regex({flags: 'g'}));\n//=> null\n\n'gh tunnckoCore/npmls#test here user/repo#branch yea'.match(regex({flags: 'g', exact: false}));\n//=> ['tunnckoCore/npmls#test', 'user/repo#branch']\n\n'gh tunnckoCore/npmls#test here user/repo#branch yea'.match(regex({exact: false}))[0];\n//=> 'tunnckoCore/npmls#test'\n\n'gh tunnckoCore/npmls#test here user/repo#branch yea'.match(regex({exact: true}));\n//=> null\n\n'tunnckoCore/npmls#test'.match(regex({exact: true}))[0];\n//=> 'tunnckoCore/npmls#test'\n```\n\n\n## Related\n- [regex-cache](https://github.com/jonschlinkert/regex-cache): Memoize the results of a call to the RegExp constructor, avoiding repetitious runtime compilation of the same string and options, resulting in dramatic speed improvements.\n- [utils](https://github.com/jonschlinkert/utils): Fast, generic JavaScript/node.js utility functions.\n- [helper-related](https://github.com/helpers/helper-related): Template helper for generating a list of links to the homepages of related GitHub/npm projects.\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/github-short-url-regex\n[npmjs-img]: https://img.shields.io/npm/v/github-short-url-regex.svg?style=flat&label=github-short-url-regex\n\n[coveralls-url]: https://coveralls.io/r/regexps/github-short-url-regex?branch=master\n[coveralls-img]: https://img.shields.io/coveralls/regexps/github-short-url-regex.svg?style=flat\n\n[license-url]: https://github.com/regexps/github-short-url-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/github-short-url-regex\n[travis-img]: https://img.shields.io/travis/regexps/github-short-url-regex.svg?style=flat\n\n[daviddm-url]: https://david-dm.org/regexps/github-short-url-regex\n[daviddm-img]: https://img.shields.io/david/regexps/github-short-url-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/github-short-url-regex/graphs/contributors\n\n***\n\n_Powered and automated by [docks](https://github.com/tunnckoCore), March 26, 2015_\n","_attachments":{},"homepage":"https://github.com/regexps/github-short-url-regex","bugs":{"url":"https://github.com/regexps/github-short-url-regex/issues"},"license":{"type":"MIT","url":"https://github.com/regexps/github-short-url-regex/blob/master/license.md"}}