scoped-regex

WebJar for scoped-regex

Лицензия

Лицензия

MIT
Группа

Группа

org.webjars.npm
Идентификатор

Идентификатор

scoped-regex
Последняя версия

Последняя версия

1.0.0
Дата

Дата

Тип

Тип

jar
Описание

Описание

scoped-regex
WebJar for scoped-regex
Ссылка на сайт

Ссылка на сайт

http://webjars.org
Система контроля версий

Система контроля версий

https://github.com/sindresorhus/scoped-regex

Скачать scoped-regex

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/org.webjars.npm/scoped-regex/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>scoped-regex</artifactId>
    <version>1.0.0</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/scoped-regex/
implementation 'org.webjars.npm:scoped-regex:1.0.0'
// https://jarcasting.com/artifacts/org.webjars.npm/scoped-regex/
implementation ("org.webjars.npm:scoped-regex:1.0.0")
'org.webjars.npm:scoped-regex:jar:1.0.0'
<dependency org="org.webjars.npm" name="scoped-regex" rev="1.0.0">
  <artifact name="scoped-regex" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='scoped-regex', version='1.0.0')
)
libraryDependencies += "org.webjars.npm" % "scoped-regex" % "1.0.0"
[org.webjars.npm/scoped-regex "1.0.0"]

Зависимости

Библиотека не имеет зависимостей. Это самодостаточное приложение, которое не зависит ни от каких других библиотек.

Модули Проекта

Данный проект не имеет модулей.

scoped-regex

Regular expression for matching scoped npm package names

Install

$ npm install 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

Type: Object

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.

Related

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

License

MIT © Sindre Sorhus

Версии библиотеки

Версия
1.0.0