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