1. dotignore
ignorefile/includefile matching .gitignore spec
dotignore
Package: dotignore
Created by: bmeck
Last modified: Fri, 09 Jun 2023 21:33:10 GMT
Version: 0.1.2
License: MIT
Downloads: 1,636,645
Repository: https://github.com/bmeck/dotignore

Install

npm install dotignore
yarn add dotignore

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

Dependencies

RELATED POST

10 Must-Know Windows Shortcuts That Will Save You Time

10 Must-Know Windows Shortcuts That Will Save You Time

Arrays vs Linked Lists: Which is Better for Memory Management in Data Structures?

Arrays vs Linked Lists: Which is Better for Memory Management in Data Structures?

Navigating AWS Networking: Essential Hacks for Smooth Operation

Navigating AWS Networking: Essential Hacks for Smooth Operation

Achieving Stunning Visuals with Unity's Global Illumination

Achieving Stunning Visuals with Unity's Global Illumination

Nim's Hidden Gems: Lesser-known Features for Writing Efficient Code

Nim's Hidden Gems: Lesser-known Features for Writing Efficient Code