dotignore

0.1.2 • Public • Published

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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.2
    434,721
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.2
    434,721
  • 0.1.1
    8
  • 0.1.0
    9
  • 0.0.1
    8
  • 0.0.0
    9

Package Sidebar

Install

npm i dotignore

Weekly Downloads

434,755

Version

0.1.2

License

MIT

Unpacked Size

5.25 kB

Total Files

8

Last publish

Collaborators

  • bradleymeck
  • ljharb