glob-whatev
A quick and dirty file globbing utility based on minimatch.
Last updated 13 years ago by cowboy .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install glob-whatev 
SYNC missed versions from official npm registry.

Node Glob, Whatever

A quick and dirty synchronous file globbing utility based on minimatch.

Why another file globbing library?

I wanted to make grunt work on Windows. Unfortunately, node-glob doesn't work on Windows, and miniglob isn't synchronous.

Any issues?

I'd imagine that this works with any path that minimatch supports. While this includes some basic unit tests, I'm hoping that minimatch has good coverage.

This module isn't terribly efficient. But that's ok, because I'm using it for relatively small folder structures. Maybe someone will make this one better (patches welcome!). Or maybe even write a better one, and then I'll use that instead. But yeah, don't use this on a really large directory structure.

Getting Started

This code should work just fine in Node.js:

First, install the module with: npm install glob-whatev

var globsync = require('glob-whatev');
globsync.glob('foo/**/*.js') // some boolean

// Basically,
globsync.glob(globPattern [, minimatchOptions]) // some boolean

Contributing

In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using grunt.

Release History

2012/01/11 - v0.1.0 - First official release.

License

Copyright (c) 2012 "Cowboy" Ben Alman
Licensed under the MIT license.
http://benalman.com/about/license/

Current Tags

  • 0.1.8                                ...           latest (12 years ago)

9 Versions

  • 0.1.8                                ...           12 years ago
  • 0.1.7                                ...           12 years ago
  • 0.1.6                                ...           13 years ago
  • 0.1.5                                ...           13 years ago
  • 0.1.4                                ...           13 years ago
  • 0.1.3                                ...           13 years ago
  • 0.1.2                                ...           13 years ago
  • 0.1.1                                ...           13 years ago
  • 0.1.0                                ...           13 years ago
Maintainers (1)
Downloads
Total 0
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (1)
Dev Dependencies (1)
Dependents (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE