/
eb
/
Surf
Обзор
Документация
Войти
/
eb
/
Surf
Код
Запросы
0
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
Surf
/
node_modules
/
ignore
/
..
CHANGELOG.md
Initial commit
6 лет назад
LICENSE-MIT
Initial commit
6 лет назад
README.md
Initial commit
6 лет назад
index.d.ts
Initial commit
6 лет назад
index.js
Initial commit
6 лет назад
legacy.js
Initial commit
6 лет назад
package.json
Initial commit
6 лет назад
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
`options.ignorecase` since 4.0.0
static `ignore.isPathValid(pathname): boolean` since 5.0.0
Upgrade Guide
Upgrade 4.x -> 5.x
Upgrade 3.x -> 4.x
Upgrade 2.x -> 3.x
Collaborators
README.md