{"_id":"scoped-regex","_rev":"113028","name":"scoped-regex","description":"Regular expression for matching scoped npm package names","dist-tags":{"latest":"3.0.0"},"maintainers":[{"name":"sindresorhus","email":""}],"time":{"modified":"2021-06-03T10:45:30.000Z","created":"2017-03-22T10:04:27.627Z","3.0.0":"2021-04-17T18:21:33.841Z","2.1.0":"2019-04-04T03:33:05.203Z","2.0.0":"2019-03-11T09:18:54.977Z","1.0.0":"2017-03-22T10:04:27.627Z"},"users":{},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"repository":{"type":"git","url":"git+https://github.com/sindresorhus/scoped-regex.git"},"versions":{"3.0.0":{"name":"scoped-regex","version":"3.0.0","description":"Regular expression for matching scoped npm package names","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/scoped-regex.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":["scoped","npm","package","name","regex","regexp","regular","expression"],"devDependencies":{"ava":"^3.15.0","tsd":"^0.14.0","xo":"^0.38.2"},"gitHead":"5de0e0ed76382ad751c3a7122b7c46ed7de94b04","bugs":{"url":"https://github.com/sindresorhus/scoped-regex/issues"},"homepage":"https://github.com/sindresorhus/scoped-regex#readme","_id":"scoped-regex@3.0.0","_nodeVersion":"12.22.1","_npmVersion":"6.14.10","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"cd7ede7d942f2ae90da53272102ff2d73129c46f","size":1762,"noattachment":false,"key":"/scoped-regex/-/scoped-regex-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/scoped-regex/download/scoped-regex-3.0.0.tgz"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/scoped-regex_3.0.0_1618683693711_0.2338960771037446"},"_hasShrinkwrap":false,"publish_time":1618683693841,"_cnpm_publish_time":1618683693841},"2.1.0":{"name":"scoped-regex","version":"2.1.0","description":"Regular expression for matching scoped npm package names","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/scoped-regex.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=8"},"scripts":{"test":"xo && ava && tsd"},"keywords":["scoped","npm","package","name","regex","regexp","regular","expression"],"devDependencies":{"ava":"^1.4.1","tsd":"^0.7.2","xo":"^0.24.0"},"gitHead":"d3a3343f03c2f8734e9fbe07cc9d2d5ef6c43fd8","bugs":{"url":"https://github.com/sindresorhus/scoped-regex/issues"},"homepage":"https://github.com/sindresorhus/scoped-regex#readme","_id":"scoped-regex@2.1.0","_nodeVersion":"8.15.0","_npmVersion":"6.9.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"7b9be845d81fd9d21d1ec97c61a0b7cf86d2015f","size":1929,"noattachment":false,"key":"/scoped-regex/-/scoped-regex-2.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/scoped-regex/download/scoped-regex-2.1.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/scoped-regex_2.1.0_1554348785031_0.7045583968733038"},"_hasShrinkwrap":false,"publish_time":1554348785203,"_cnpm_publish_time":1554348785203},"2.0.0":{"name":"scoped-regex","version":"2.0.0","description":"Regular expression for matching scoped npm package names","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/scoped-regex.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=8"},"scripts":{"test":"xo && ava && tsd-check"},"keywords":["scoped","npm","package","name","regex","regexp","regular","expression"],"devDependencies":{"ava":"^1.3.1","tsd-check":"^0.3.0","xo":"^0.24.0"},"gitHead":"a89bf7c8b3528d347d253f9cb400043c290d52a0","bugs":{"url":"https://github.com/sindresorhus/scoped-regex/issues"},"homepage":"https://github.com/sindresorhus/scoped-regex#readme","_id":"scoped-regex@2.0.0","_nodeVersion":"8.15.0","_npmVersion":"6.9.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"2029bb0eff156c297ae02302563d513560a233f9","size":1809,"noattachment":false,"key":"/scoped-regex/-/scoped-regex-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/scoped-regex/download/scoped-regex-2.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/scoped-regex_2.0.0_1552295934842_0.22455529043535138"},"_hasShrinkwrap":false,"publish_time":1552295934977,"_cnpm_publish_time":1552295934977},"1.0.0":{"name":"scoped-regex","version":"1.0.0","description":"Regular expression for matching scoped npm package names","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/scoped-regex.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=4"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["scoped","npm","package","name","regex","regexp","regular","expression"],"devDependencies":{"ava":"*","xo":"*"},"gitHead":"e888de4f3741c2be4ec41ddae569d234f6f2edb9","bugs":{"url":"https://github.com/sindresorhus/scoped-regex/issues"},"homepage":"https://github.com/sindresorhus/scoped-regex#readme","_id":"scoped-regex@1.0.0","_shasum":"a346bb1acd4207ae70bd7c0c7ca9e566b6baddb8","_from":".","_npmVersion":"2.15.11","_nodeVersion":"4.7.3","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"a346bb1acd4207ae70bd7c0c7ca9e566b6baddb8","size":1661,"noattachment":false,"key":"/scoped-regex/-/scoped-regex-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/scoped-regex/download/scoped-regex-1.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/scoped-regex-1.0.0.tgz_1490177065801_0.6801143102347851"},"directories":{},"publish_time":1490177067627,"_cnpm_publish_time":1490177067627,"_hasShrinkwrap":false}},"readme":"# scoped-regex\n\n> Regular expression for matching [scoped npm package names](https://docs.npmjs.com/misc/scope)\n\n## Install\n\n```\n$ npm install scoped-regex\n```\n\n## Usage\n\n```js\nimport scopedRegex from 'scoped-regex';\n\nscopedRegex({exact: true}).test('@sindresorhus/df');\n//=> true\n\n'foo @sindresorhus/df bar'.match(scopedRegex());\n//=> ['@sindresorhus/df']\n```\n\n## API\n\n### scopedRegex(options?)\n\nReturns a `RegExp` for matching scoped package names.\n\n#### options\n\nType: `object`\n\n##### exact\n\nType: `boolean`\\\nDefault: `false` *(Matches any scoped 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## Related\n\n- [is-scoped](https://github.com/sindresorhus/is-scoped) - Check if a string is a scoped npm package name\n","_attachments":{},"homepage":"https://github.com/sindresorhus/scoped-regex#readme","bugs":{"url":"https://github.com/sindresorhus/scoped-regex/issues"},"license":"MIT"}