{"_id":"org-regex","_rev":"113144","name":"org-regex","description":"Regular expression for matching npm organization names","dist-tags":{"latest":"1.0.0"},"maintainers":[{"name":"npm:sidoshi","email":""},{"name":"sidoshi","email":"sidoshi510@gmail.com"}],"time":{"modified":"2021-06-03T10:45:40.000Z","created":"2019-06-30T12:12:20.623Z","1.0.0":"2019-06-30T12:12:20.623Z"},"users":{},"author":{"name":"Siddharth Doshi","email":"sidoshi510@gmail.com","url":"https://sid.sh"},"repository":{"type":"git","url":"git+https://github.com/sidoshi/org-regex.git"},"versions":{"1.0.0":{"name":"org-regex","version":"1.0.0","description":"Regular expression for matching npm organization names","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sidoshi/org-regex.git"},"author":{"name":"Siddharth Doshi","email":"sidoshi510@gmail.com","url":"https://sid.sh"},"engines":{"node":">=8"},"scripts":{"test":"xo && ava && tsd"},"keywords":["scoped","npm","package","organization","name","regex","regexp","regular","expression"],"devDependencies":{"ava":"^2.1.0","tsd":"^0.7.2","xo":"^0.24.0"},"gitHead":"8bdb3e298a718704da6b7c097943f769aec92bc0","bugs":{"url":"https://github.com/sidoshi/org-regex/issues"},"homepage":"https://github.com/sidoshi/org-regex#readme","_id":"org-regex@1.0.0","_nodeVersion":"10.15.0","_npmVersion":"6.9.0","dist":{"shasum":"67ebb9ab3cb124fea5841289d60b59434f041a59","size":1889,"noattachment":false,"key":"/org-regex/-/org-regex-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/org-regex/download/org-regex-1.0.0.tgz"},"maintainers":[{"name":"npm:sidoshi","email":""},{"name":"sidoshi","email":"sidoshi510@gmail.com"}],"_npmUser":{"name":"sidoshi","email":"sidoshi@email.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/org-regex_1.0.0_1561896740535_0.9730268196952878"},"_hasShrinkwrap":false,"publish_time":1561896740623,"_cnpm_publish_time":1561896740623}},"readme":"# org-regex [![Build Status](https://travis-ci.org/sidoshi/org-regex.svg?branch=master)](https://travis-ci.org/sidoshi/org-regex)\n\n> Regular expression for matching [npm organizations](https://docs.npmjs.com/orgs/)\n\n\n## Install\n\n```\n$ npm install org-regex\n```\n\n\n## Usage\n\n```js\nconst orgRegex = require('org-regex');\n\norgRegex({exact: true}).test('@ava');\n//=> true\n\n'foo @ava bar @ava/init'.match(orgRegex());\n//=> ['@ava']\n```\n\n\n## API\n\n### orgRegex([options])\n\nReturns a `RegExp` for matching npm organization names.\n\n#### options\n\nType: `Object`\n\n##### exact\n\nType: `boolean`<br>\nDefault: `false` *(Matches any organization package names in a string)*\n\nOnly match an exact string. Useful with `RegExp#test()` to check if a string is a scoped package name.\n\n\n## Related\n\n- [scoped-regex](https://github.com/sindresorhus/scoped-regex) - Check if a string is a scoped npm package name\n\n\n## License\n\nMIT © [Siddharth Doshi](https://sid.sh)\n","_attachments":{},"homepage":"https://github.com/sidoshi/org-regex#readme","bugs":{"url":"https://github.com/sidoshi/org-regex/issues"},"license":"MIT"}