Tizen 2.0 Release
[platform/framework/web/web-ui-fw.git] / libs / js / jquery-mobile-1.2.0 / node_modules / glob-whatev / README.md
1 # Node Glob, Whatever
2
3 A quick and dirty synchronous file globbing utility based on [minimatch](https://github.com/isaacs/minimatch).
4
5 ## Why another file globbing library?
6
7 I wanted to make [grunt](https://github.com/cowboy/grunt) work on Windows. Unfortunately, [node-glob](https://github.com/isaacs/node-glob) doesn't work on Windows, and [miniglob](https://github.com/isaacs/miniglob) isn't synchronous. And this needed to be synchronous.
8
9 ## Any issues?
10
11 This library works with any path that [minimatch](https://github.com/isaacs/minimatch) supports, and is the core of the [grunt](https://github.com/cowboy/grunt) wildcard globbing methods.
12
13 To be fair, this library isn't terribly efficient. But that's ok, because it's mainly used with relatively small folder structures. Maybe someone will help improve this library (patches welcome!). Or maybe even write a better library, and then I'll use that instead. But for now, this works just fine.
14
15 ## Getting Started
16
17 First, install the module with: `npm install glob-whatev`
18
19 ```javascript
20 var globsync = require('glob-whatev');
21
22 // Relative patterns are matched against the current working directory.
23 globsync.glob('foo/**/*.js').forEach(function(filepath) {
24   // do stuff with `filepath`
25 });
26
27 // Basically, it works like this.
28 globsync.glob(globPattern [, minimatchOptions])
29
30 // Also, minimatch is exposed in case you just want to match patterns, eg.
31 var isJS = globsync.minimatch(file, '*.js', {matchBase: true});
32 ```
33
34 ## Contributing
35 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](https://github.com/cowboy/grunt).
36
37 ## Release History
38
39 * 2012/07/20 - v0.1.8 - Fixed a bug whereby specifying a trailing / in directory names would fail.
40 * 2012/07/02 - v0.1.7 - No longer warns about path.existsSync in Node 0.8.x.
41 * 2012/04/13 - v0.1.6 - Added `options.cwd` option to allow searching from a different base directory than `process.cwd()`. Added `options.maxDepth` unit tests.
42 * 2012/04/10 - v0.1.5 - Fixed an issue where using the `matchBase` minimatch option with simple patterns would fail.
43 * 2012/03/26 - v0.1.4 - Fixed a minor issue with absolute paths on Windows.
44 * 2012/03/25 - v0.1.3 - Updated to minimatch 0.2.2+. Minimatch is now exposed as exports.minimatch.
45 * 2012/02/14 - v0.1.2 - Fixed an issue with nonexistent directories.
46 * 2012/01/23 - v0.1.1 - Fixed an issue with stat and locked files.
47 * 2012/01/11 - v0.1.0 - First official release.
48
49 ## License
50 Copyright (c) 2012 "Cowboy" Ben Alman  
51 Licensed under the MIT license.  
52 <http://benalman.com/about/license/>