shebang-regex

WebJar for shebang-regex

Лицензия

Лицензия

MIT
Группа

Группа

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

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

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

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

3.0.0
Дата

Дата

Тип

Тип

jar
Описание

Описание

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

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

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

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

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

Скачать shebang-regex

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

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

Зависимости

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

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

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

shebang-regex

Regular expression for matching a shebang line

Install

$ npm install shebang-regex

Usage

const shebangRegex = require('shebang-regex');

const string = '#!/usr/bin/env node\nconsole.log("unicorns");';

shebangRegex.test(string);
//=> true

shebangRegex.exec(string)[0];
//=> '#!/usr/bin/env node'

shebangRegex.exec(string)[1];
//=> '/usr/bin/env node'

Get professional support for this package with a Tidelift subscription
Tidelift helps make open source sustainable for maintainers while giving companies
assurances about security, maintenance, and licensing for their dependencies.

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

Версия
3.0.0
1.0.0