{"_id":"@cjser/scoped-regex","name":"@cjser/scoped-regex","dist-tags":{"latest":"3.0.0-cjser.2"},"versions":{"3.0.0-cjser.2":{"name":"@cjser/scoped-regex","version":"3.0.0-cjser.2","description":"Regular expression for matching scoped npm package names","license":"MIT","repository":{"type":"git","url":"https://code.moenext.com/3rdeye/cjser.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":{"require":"./dist-cjser/index.cjs","default":"./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"},"main":"./dist-cjser/index.cjs","cjser":{"sourceVersion":"3.0.0","cjserVersion":2,"original":{"name":"scoped-regex","version":"3.0.0","exports":"./index.js","repository":"sindresorhus/scoped-regex","files":["index.js","index.d.ts"],"scripts":{"test":"xo && ava && tsd"}}},"_id":"@cjser/scoped-regex@3.0.0-cjser.2","gitHead":"a4bef54d7d22d3d9a6b84528457938d84cd65fe7","_nodeVersion":"20.14.0","_npmVersion":"10.7.0","dist":{"integrity":"sha512-hYdV4aIiQmkAP02Oth/sB+Re0K3W68hTkjEpik6FAGHAm7v9UICKQe+ixJ5yCw2xVjMzet1qVEnzrX8DFSHGkw==","shasum":"493172c0100e78900053b591fab6380d41fbe53e","tarball":"https://registry.npmjs.org/@cjser/scoped-regex/-/scoped-regex-3.0.0-cjser.2.tgz","fileCount":6,"unpackedSize":5583,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCKrVdVofXnV8UMeh3hNlGL4JcGShns/O2yWQg6ZMOD/wIhAKIfuwmYO0KEtZzgHS+BwY0gXIQ3+1/2iH+3QxlsdS7f"}]},"_npmUser":{"name":"nanahira","email":"nanahira@momobako.com"},"directories":{},"maintainers":[{"name":"nanahira","email":"nanahira@momobako.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/scoped-regex_3.0.0-cjser.2_1778159913040_0.9905724601474455"},"_hasShrinkwrap":false}},"time":{"created":"2026-05-07T13:18:32.917Z","3.0.0-cjser.2":"2026-05-07T13:18:33.196Z","modified":"2026-05-07T13:18:33.478Z"},"maintainers":[{"name":"nanahira","email":"nanahira@momobako.com"}],"description":"Regular expression for matching scoped npm package names","keywords":["scoped","npm","package","name","regex","regexp","regular","expression"],"repository":{"type":"git","url":"https://code.moenext.com/3rdeye/cjser.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"license":"MIT","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\n## cjser\n\nThis package is a CommonJS-compatible build generated by cjser for projects that still need `require()` support. The source version matches the original npm package version, with a cjser prerelease suffix for this generated build.\nOriginal repository: https://github.com/sindresorhus/scoped-regex\n","readmeFilename":"readme.md","_rev":"1-529d4a6954807c546518d099ae077e3d"}