node-ignore

🔍 node-ignore is the manager and filter for .gitignore rules, the one used by eslint, prettier and many others.

OTHER License

Downloads
260.2M
Stars
418
Committers
18

Bot releases are visible (Hide)

node-ignore - 5.3.0 Latest Release

Published by kaelzhang 11 months ago

5.3.0

  • MINOR export 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'
node-ignore - 5.2.4

Published by kaelzhang almost 2 years ago

  • PATCH fixes normal single asterisk and normal consecutive asterisks defined in gitignore spec (#57)
  • PATCH invalid trailing backslash will not throw unexpectedly

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 `\`
node-ignore - 5.2.0

Published by kaelzhang almost 3 years ago

  • PATCH support readonly arrays of typescript. (#70)
  • MINOR bring backward compatibility with relative paths. (#75)

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')
node-ignore - 5.1.9

Published by kaelzhang almost 3 years ago

  • PATCH fixes ignorecase when internal cache is hit. (#74)

An upgrade is recommended for all dependents.

node-ignore - 5.1.5

Published by kaelzhang over 4 years ago

  • PATCH fixes escaping for square brackets (#59)

An upgrade is recommended for all dependents.

node-ignore - 5.1.3

Published by kaelzhang about 5 years ago

An upgrade is recommended for all dependents.

node-ignore - 5.1.1

Published by kaelzhang over 5 years ago

  • PATCH fixes 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.

node-ignore - 2019-04-14, Version 5.1.0

Published by kaelzhang over 5 years ago

  • FEATURE: Typescript: export interface Ignore (#53)
node-ignore - 5.0.4

Published by kaelzhang over 5 years ago

  • PATCH: fixes isPathValid in windows (#47)
node-ignore -

Published by kaelzhang about 6 years ago

  • PATCH: fixes for windows.
  • PATCH: improves tests for typescript and windows.
node-ignore - 2018-08-13, Version 5.0.0

Published by kaelzhang about 6 years ago

  • SEMVER-MAJOR: #20: it will throw if an invalid pathname passes into .ignores(pathname), see Upgrade 4.x -> 5.x.
  • FEATURE: #31: adds a new method .test(pathname).
  • BENCHMARK: improves performance by 26%.
node-ignore -

Published by kaelzhang about 6 years ago

  • PATCH: Object.prototype methods will not ruin the result any more.