Skip to content

pandastrike/panda-glob

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

panda-glob

A globbing wrapper around minimatch optimized for multiple calls against large directories.

Installation

npm install panda-glob

Usage

glob = require "glob"
paths = glob("node_modules", "**/*.coffee")

There is presently no async mode.

For more, see the docs for the minimatch library, which does the real work.

Caching

The filesystem hierarchy is cached, as are instances of the minimatch pattern itself. So you can call this repeatedly without incurring additional filesystem overhead. This means that, if there are changes over time, you will start to get erroneous results. There is presently no way to clear the cache.

About

A globbing wrapper around minimatch optimized for repeated calls on large directories

Resources

Stars

Watchers

Forks

Packages

No packages published