deps-regex

WebJar for deps-regex

Лицензия

Лицензия

MIT
Группа

Группа

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

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

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

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

0.1.4
Дата

Дата

Тип

Тип

jar
Описание

Описание

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

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

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

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

https://github.com/mathieudutour/deps-regex

Скачать deps-regex

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

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

Зависимости

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

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

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

deps-regex

Regular expression for matching javascript require statements.

This is pretty fragile and created for perf reasons where using a real parser would be overkill.

Install

Install with npm

$ npm i deps-regex --save

Usage

var DepsRegex = require('deps-regex');
var re = new DepsRegex({
  matchInternal: true,
  matchES6: true,
  matchCoffeescript: true
})

re.getDependencies('var foo = require(\'bar\');');
//=>
// [ 'bar']

Known false positives

module.exports = 'require("false-positive");';

Running tests

Install dev dependencies:

$ npm i -d && npm test

Contributing

Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.

License

Released under the MIT license.

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

Версия
0.1.4