Permalink
Browse files

301 Permanent Redirect

Renamed.  Please use <https://github.com/isaacs/node-glob> instead.
  • Loading branch information...
1 parent 7e07ba2 commit 278b2086717d78e0f81e82255cc1510181059807 @isaacs committed Jan 18, 2012
Showing with 2 additions and 683 deletions.
  1. +0 −2 .gitignore
  2. +2 −102 README.md
  3. +0 −9 examples/g.js
  4. +0 −369 glob.js
  5. +0 −28 package.json
  6. +0 −61 test/00-setup.js
  7. +0 −101 test/bash-comparison.js
  8. +0 −11 test/zz-cleanup.js
View
@@ -1,2 +0,0 @@
-.*.swp
-test/a/
View
104 README.md
@@ -1,103 +1,3 @@
-# Glob
+# 301 Permanent Redirect
-This is a glob implementation in JavaScript. It uses the `minimatch`
-library to do its matching.
-
-## Usage
-
-```javascript
-var glob = require("glob")
-
-// options is optional
-glob("**/*.js", options, function (er, files) {
- // files is an array of filenames.
- // If the `nonull` option is set, and nothing
- // was found, then files is ["**/*.js"]
- // er is an error object or null.
-})
-```
-
-## Features
-
-Please see the [minimatch
-documentation](https://github.com/isaacs/minimatch) for more details.
-
-Supports these glob features:
-
-* Brace Expansion
-* Extended glob matching
-* "Globstar" `**` matching
-
-See:
-
-* `man sh`
-* `man bash`
-* `man 3 fnmatch`
-* `man 5 gitignore`
-* [minimatch documentation](https://github.com/isaacs/minimatch)
-
-## Glob Class
-
-Create a glob object by instanting the `glob.Glob` class.
-
-```javascript
-var Glob = require("glob").Glob
-var mg = new Glob(pattern, options)
-```
-
-It's an EventEmitter.
-
-### Properties
-
-* `minimatch` The minimatch object that the glob uses.
-* `options` The options object passed in.
-* `matches` A [FastList](https://github.com/isaacs/fast-list) object
- containing the matches as they are found.
-* `error` The error encountered. When an error is encountered, the
- glob object is in an undefined state, and should be discarded.
-* `aborted` Boolean which is set to true when calling `abort()`. There
- is no way at this time to continue a glob search after aborting.
-
-### Events
-
-* `end` When the matching is finished, this is emitted with all the
- matches found. If the `nonull` option is set, and no match was found,
- then the `matches` list contains the original pattern. The matches
- are sorted, unless the `nosort` flag is set.
-* `match` Every time a match is found, this is emitted with the pattern.
-* `partial` Emitted when a directory matches the start of a pattern, and
- is then searched for additional matches.
-* `error` Emitted when an unexpected error is encountered.
-* `abort` When `abort()` is called, this event is raised.
-
-### Methods
-
-* `abort` Stop the search.
-
-### Options
-
-All the options that can be passed to Minimatch can also be passed to
-Glob to change pattern matching behavior. Additionally, these ones
-are added which are glob-specific, or have glob-specific ramifcations.
-
-All options are false by default.
-
-* `cwd` The current working directory in which to search. Since, unlike
- Minimatch, Glob requires a working directory to start in, this
- defaults to `process.cwd()`.
-* `root` Since Glob requires a root setting, this defaults to
- `path.resolve(options.cwd, "/")`.
-* `mark` Add a `/` character to directory matches.
-* `follow` Use `stat` instead of `lstat`. This can cause undesirable
- behavior in the case of symbolic link cycles.
-* `nosort` Don't sort the results.
-* `stat` Set to true to stat/lstat *all* results. This reduces performance
- somewhat, but guarantees that the results are files that actually
- exist.
-* `silent` When an error other than `ENOENT` or `ENOTDIR` is encountered
- when attempting to read a directory, a warning will be printed to
- stderr. Set the `silent` option to true to suppress these warnings.
-* `strict` When an error other than `ENOENT` or `ENOTDIR` is encountered
- when attempting to read a directory, the process will just continue on
- in search of other matches. Set the `strict` option to raise an error
- in these cases.
+Renamed. Please use <https://github.com/isaacs/node-glob> instead.
View
@@ -1,9 +0,0 @@
-var MG = require("./").Miniglob
-
-var pattern = "test/a/**/[cg]/../[cg]"
-console.log(pattern)
-
-var mg = new MG(pattern, {mark: true, sync:true}, function (er, matches) {
- console.log("matches", matches)
-})
-console.log("after")
Oops, something went wrong.

0 comments on commit 278b208

Please sign in to comment.