You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
王厅 539a1f95cc vue + ant-design + vxe-table 3 weeks ago
..
index.js vue + ant-design + vxe-table 3 weeks ago
license vue + ant-design + vxe-table 3 weeks ago
package.json vue + ant-design + vxe-table 3 weeks ago
readme.md vue + ant-design + vxe-table 3 weeks ago

readme.md

scoped-regex Build Status

Regular expression for matching scoped npm package names

Install

$ npm install --save scoped-regex

Usage

const scopedRegex = require('scoped-regex');

scopedRegex({exact: true}).test('@sindresorhus/df');
//=> true

'foo @sindresorhus/df bar'.match(scopedRegex());
//=> ['@sindresorhus/df']

API

scopedRegex([options])

Returns a RegExp for matching scoped package names.

options.exact

Type: boolean
Default: false (Matches any scoped package names in a string)

Only match an exact string. Useful with RegExp#test() to check if a string is a scoped package name.

  • is-scoped - Check if a string is a scoped npm package name

License

MIT © Sindre Sorhus