dotignore
ignorefile/includefile matching .gitignore spec
Last updated 10 years ago by ljharb .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install dotignore 
SYNC missed versions from official npm registry.

dotignore

ignored $IGNOREFILE

Check the ignorefile against the current directory. Print out if a file should be ignored by prefixing with a -. If the file should not be ignored prefix it with a +.

API

exports.createMatcher(str)

Return a Matcher that fully matches the str argument.

str should conform to the .gitignore specification.

Matcher.shouldIgnore(name)

Test that all the rules provided to create the matcher match the name given. / is expected as the path delimiter. Returns true if the name should be ignored.

LICENSE

MIT

Current Tags

  • 0.1.2                                ...           latest (5 years ago)

5 Versions

  • 0.1.2                                ...           5 years ago
  • 0.1.1                                ...           10 years ago
  • 0.1.0                                ...           10 years ago
  • 0.0.1                                ...           11 years ago
  • 0.0.0                                ...           12 years ago
Maintainers (2)
Downloads
Total 4
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (1)
Dev Dependencies (1)
Dependents (2)

© 2010 - cnpmjs.org x YWFE | Home | YWFE