🔍 node-ignore is the manager and filter for .gitignore rules, the one used by eslint, prettier and many others.
OTHER License
Bot releases are visible (Hide)
Options
interface (#105)An upgrade is safe for all dependents
It allows typing external methods which expect Options
as a param, by importing the Options
interface.
import {Options} from 'ignore'
Published by kaelzhang almost 2 years ago
An upgrade is recommended for all dependents
The following rules could be not properly parsed with previous ignore
versions
**foo
*bar
qu*ux
abc\ # `ignore` would throw if no whitespace after `\`
Published by kaelzhang almost 3 years ago
An upgrade is recommended for all dependents.
ignore().ignores('../foo/bar.js') // will throw
And the code below will not throw, however it is not recommended
ignore({
allowRelativePaths: true
}).ignores('../foo/bar.js')
Recommend:
ignore().ignores('foo/bar.js')
Published by kaelzhang almost 3 years ago
ignorecase
when internal cache is hit. (#74)An upgrade is recommended for all dependents.
Published by kaelzhang over 4 years ago
An upgrade is recommended for all dependents.
Published by kaelzhang about 5 years ago
An upgrade is recommended for all dependents.
Published by kaelzhang over 5 years ago
isPathValid
on Windows (#54)On Windows, if path
is an absolute path, ig.ignores(path)
, ig.test(path)
and related methods will now throw an error as expected.
Published by kaelzhang over 5 years ago
Published by kaelzhang over 5 years ago
Published by kaelzhang about 6 years ago
.ignores(pathname)
, see Upgrade 4.x -> 5.x..test(pathname)
.