/
XPLAY
/
Sonara
Обзор
Документация
Войти
/
XPLAY
/
Sonara
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
Sonara
/
node_modules
/
ignore
/
..
LICENSE-MIT
First commit
месяц назад
README.md
First commit
месяц назад
index.d.ts
First commit
месяц назад
index.js
First commit
месяц назад
legacy.js
First commit
месяц назад
package.json
First commit
месяц назад
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