@bcoe/dotignore
ignorefile/includefile matching .gitignore spec
Last updated 8 years ago by bcoe .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @bcoe/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 (8 years ago)

2 Versions

  • 0.1.2                                ...           8 years ago
  • 0.1.1                                ...           8 years ago
Maintainers (1)
Downloads
Today 1
This Week 2
This Month 3
Last Day 0
Last Week 1
Last Month 0
Dependencies (1)
Dev Dependencies (4)
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |