/
asias
/
new
Обзор
Документация
Войти
/
asias
/
new
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
new
/
node_modules
/
ignore
/
..
LICENSE-MIT
project
8 месяцев назад
README.md
project
8 месяцев назад
index.d.ts
project
8 месяцев назад
index.js
project
8 месяцев назад
legacy.js
project
8 месяцев назад
package.json
project
8 месяцев назад
ignore
Tested on
Table Of Main Contents
Install
Usage
Filter the given paths
As the filter function
Win32 paths will be handled
Why another ignore?
Methods
.add(pattern: string | Ignore): this
.add(patterns: Array): this
.addIgnoreFile(path)
.filter(paths: Array): Array
`Pathname` Conventions:
1. `Pathname` should be a `path.relative()`d pathname
2. filenames and dirnames
.ignores(pathname: Pathname): boolean
.createFilter()
.test(pathname: Pathname) since 5.0.0
static `ignore.isPathValid(pathname): boolean` since 5.0.0
ignore(options)
`options.ignorecase` since 4.0.0
`options.ignoreCase?: boolean` since 5.2.0
`options.allowRelativePaths?: boolean` since 5.2.0
Upgrade Guide
Upgrade 4.x -> 5.x
Upgrade 3.x -> 4.x
Upgrade 2.x -> 3.x
Collaborators
README.md