matchdep

WebJar for matchdep

Лицензия

Лицензия

MIT
Группа

Группа

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

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

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

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

2.0.0
Дата

Дата

Тип

Тип

jar
Описание

Описание

matchdep
WebJar for matchdep
Ссылка на сайт

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

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

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

https://github.com/tkellen/js-matchdep

Скачать matchdep

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

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

Зависимости

compile (4)

Идентификатор библиотеки Тип Версия
org.webjars.npm : findup-sync jar [2.0.0,3)
org.webjars.npm : micromatch jar [3.0.4,4)
org.webjars.npm : resolve jar [1.4.0,2)
org.webjars.npm : stack-trace jar [0.0.10]

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

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

matchdep Build Status

Use micromatch to filter npm module dependencies by name.

NPM

Examples

var matchdep = require('matchdep');

// Filter dependencies (by autoloading nearest package.json)
matchdep.filter('mini*');

// Filter devDependencies (with config string indicating file to be required)
matchdep.filterDev('grunt-contrib-*', './package.json');

// Filter peerDependencies (with config string indicating file to be required)
matchdep.filterPeer('foo-{bar,baz}', './some-other.json');

// Filter all dependencies (with explicit config provided)
matchdep.filterAll('*', require('./yet-another.json'));

// Filter all dependencies, exclude grunt (multiple matching patterns)
matchdep.filterAll(['*','!grunt']);

Usage

filter(pattern, config)
filterDev(pattern, config)
filterPeer(pattern, config)
filterAll(pattern, config)

pattern

Type: String|Array Default: 'none'

A micromatch compatible match pattern to filter dependencies.

config

Type: String or Object Default: Path to nearest package.json.

If config is a string, matchdep will attempt to require it. If it is an object, it will be used directly.

Release History

  • 2017-08-18 - v2.0.0 - Upgrade major versions of dependencies, Upgrade devDeps
  • 2016-02-09 - v1.0.1 - switch to micromatch, remove globule
  • 2015-09-27 - v1.0.0 - throw when no package.json found, update dependencies, remove node 0.8 support
  • 2013-10-09 - v0.3.0 - support multiple pattern matches using globule
  • 2013-10-08 - v0.2.0 - refactor and support filtering peerDependencies
  • 2012-11-27 - v0.1.0 - initial release

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

Версия
2.0.0
1.0.1