A middleware package for glob-fs that automatically ignores dotfiles (files and directories starting with a dot) during file globbing. Version 0.1.6 is the latest and only release. It was originally a built-in middleware for glob-fs but can be used directly when the default middleware stack is disabled. Key differentiators: provides fine-grained control over dotfile handling via options like 'dot', 'dotdirs', 'dotfiles'. The package is part of the glob-fs ecosystem but is deprecated in favor of glob-fs's built-in support.
npm install glob-fs-dotfilesVerified import paths — ran on the pinned version, not inferred.
Shows require and use of glob-fs-dotfiles middleware with glob-fs, including disabling built-ins for explicit control.
Use glob-fs without this package; dotfiles are ignored by default. Or if you need to include them, use options.dot: true in glob-fs.
Ensure glob-fs is installed and you create a glob-fs instance before using this middleware.
Use .use(dotfiles()) instead of .use(dotfiles).
Use dotfiles({dot: true}) to include dotfiles; otherwise they are ignored.Install glob-fs: npm install glob-fs --save and require it before using .use().
Create a glob-fs instance first: var glob = require('glob-fs')(options); glob.use(require('glob-fs-dotfiles')());Change .use(require('glob-fs-dotfiles')) to .use(require('glob-fs-dotfiles')())